随笔分类 - Oracle.约束
摘要:假设有这样一张没有事先设定主键的表: create table test( id number(12) ) 这样给它填充数据: insert into test(id) values (1); insert into test(id) values (2); insert into test(id)
阅读全文
摘要:建表时即添加check约束 create table emp9( id number(3), name nvarchar2(20) check(name='hero' or name='ufo'), primary key(id) ) 查询该表的所有约束: select constraint_nam
阅读全文