【发布时间】:2015-01-28 16:05:37
【问题描述】:
我正在尝试在 Oracle 中创建一个表,并希望将数据类型设为一年:
create table testingTable
(
testID varchar2(3) primary key,
dateDeveloped year(4)
);
我收到的错误消息是
Error at Command Line : 16 Column : 19
Error report -
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
*Cause:
*Action:
感谢您的宝贵时间。
【问题讨论】:
-
新数据类型应该有什么范围? 1900 年及以后?公元前 8000 年到公元 300,000 年?它应该拒绝第 0 年吗?
标签: sql oracle date create-table