我在oracle XE中创建了一个表,我有一个类型为date的字段.我希望如果可能的话,当我插入一行,它会自动填充该系统的当前日期的字段.
我从SQL提示符插入行.
谢谢
以下是如何正确格式化表格:
create table test (first number,second timestamp default systimestamp,third varchar2(12));
并且您的默认值始终是当前系统时间格式化为时间戳.
我在oracle XE中创建了一个表,我有一个类型为date的字段.我希望如果可能的话,当我插入一行,它会自动填充该系统的当前日期的字段.
我从SQL提示符插入行.
谢谢
以下是如何正确格式化表格:
create table test (first number,second timestamp default systimestamp,third varchar2(12));
并且您的默认值始终是当前系统时间格式化为时间戳.
【免责声明】本站内容转载自互联网,其发布内容言论不代表本站观点,如果其链接、内容的侵犯您的权益,烦请提交相关链接至邮箱xwei067@foxmail.com我们将及时予以处理。
Copygight © 2013-2023 https://www.1tg.com.cn All Rights Reserved.糖果站长网
站长:xwei067#foxmail.com(请把#换成@)