首页 > 数据库技术 > 详细

Oracle 检查约束check

时间:2018-12-09 13:00:27      阅读:184      评论:0      收藏:0      [点我收藏+]
--检查约束
create table test1(
       id number(10) primary key,
       email varchar2(10) check (email like %@%)
)
drop table test1
insert into test1 values(1,12@6.com);
select * from test1

create table test2(
       id number primary key,
       gender varchar2(4) check(gender in(,))
)
drop table test2
select * from test2
insert into test2 values(1,)

 

Oracle 检查约束check

原文:https://www.cnblogs.com/niwotaxuexiba/p/10090696.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!