【发布时间】:2019-01-24 13:04:44
【问题描述】:
在 Oracle 中运行我的脚本后,我收到错误代码“ORA-00907:缺少右括号”。我已经创建了客户表和员工表,这两个表都运行正确并且添加了表。但是,我在创建“约会”表时遇到问题。创建它的代码如下:
create table Appointment
(appointment_num number(9) not null primary key,
appointment_time datetime(),
emp_ID number(4) not null references employee (emp_ID),
client_ID number(9) not null references client (client_ID))
无法找到错误所在,也无法在其他地方找到有关该问题的任何故障排除指南。任何帮助将不胜感激。
【问题讨论】:
-
什么是
datetime()?