GBase 8s
适配迁移
问答
无法给datetime 数据类型创建默认值
发表于2024-12-12 12:10:06186次浏览10个评论
为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【GBase版本】:8s
【操作系统】:欧拉
【CPU】:
【问题描述】*:无法给datetime数据类型创建默认值,错误提示为:SQL 错误 [ErrorCode:-591][SQLState:IX000):字段/变量(createtime)无效的
默认值。
评论
登录后才可以发表评论
hugolin发表于 1年前
create table dt_tab(a datetime year to fraction(5) default current year to fraction(5));
最佳回答
GBase用户25040发表于 1年前
@hugolin:好的,多谢
liaosnet发表于 1年前
指定时间的方式为
create table dt_tab(a datetime year to fraction(5) DEFAULT(datetime(2024-12-12 00:00:00) year to SECOND));
create table dt_tab(a datetime year to fraction(5) DEFAULT(datetime(2024-12-12 00:00:00) year to SECOND));
GBase用户25040发表于 1年前
@liaosnet:好的,多谢
GBase用户25040发表于 1年前
@liaosnet:请问下,我们有没有交流群或者别的可以讨论的地方
GBase用户12133发表于 6个月前
@GBase用户25040:我们有线上培训课堂,会建立微信群。其他有比如项目群等方式
levvel发表于 6个月前
给你点个赞
山佳发表于 2个月前
学习了
山佳发表于 2个月前
看看啦。
山佳发表于 2个月前
围观了。
热门帖子
- 12025-12-01浏览数:182763
- 22023-05-09浏览数:25057
- 42023-09-25浏览数:18525
- 52020-05-11浏览数:17528