首页 > 其他 > 详细

20170802上课随笔

时间:2017-08-03 09:29:31      阅读:172      评论:0      收藏:0      [点我收藏+]

deptno int constraint emp_deptno_fk references dept(deptno))级联约束

    deptno int constraint emp_deptno_fk references dept(deptno) on delete set null)或者on delete cascade//级联删除

 

ALTER TABLE test_phone_tab disable constraint test_phone_pk; //禁用约束

ALTER TABLE test_phone_tab enable constraint test_phone_pk; //启用约束

20170802上课随笔

原文:http://www.cnblogs.com/guoxf/p/7277805.html

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