随笔分类 -  Oracle.约束

摘要:假设有这样一张没有事先设定主键的表: create table test( id number(12) ) 这样给它填充数据: insert into test(id) values (1); insert into test(id) values (2); insert into test(id) 阅读全文
posted @ 2022-01-29 19:14 逆火狂飙 阅读(144) 评论(0) 推荐(0) 编辑
摘要:建表时即添加check约束 create table emp9( id number(3), name nvarchar2(20) check(name='hero' or name='ufo'), primary key(id) ) 查询该表的所有约束: select constraint_nam 阅读全文
posted @ 2022-01-15 12:37 逆火狂飙 阅读(114) 评论(0) 推荐(0) 编辑

生当作人杰 死亦为鬼雄 至今思项羽 不肯过江东
点击右上角即可分享
微信分享提示