首页 > 数据库 > Oracle > OCP 1Z0-051-31
A. You cannot use SYSDATE in the condition of a CHECK constraint.
B. You cannot use the BETWEEN clause in the condition of a CHECK constraint.
C. You cannot use the NEXTVAL sequence value as a DEFAULT value for a column.
D. You cannot use ORD_NO and ITEM_NO columns as a composite primary key because ORD_NO is also the FOREIGN KEY.
解析:
|
--C create sequence seq_t start with 1 increment by 1 maxvalue 10 nocycle nocache; create table t ( col1 number(2), col2 number(4) default seq_t.nextval ) col2 number(4) default seq_t.nextval * ERROR at line 4: ORA-00984: column not allowed here |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1158776/ ,如需转载,请注明出处,否则将追究法律责任。