摘要: 1 CIDR值: 2 1.掩码255.0.0.0:/8(A类地址默认掩码) 3 2.掩码255.128.0.0:/9 4 3.掩码255.192.0.0:/10 5 4.掩码255.224.0.0:/11 6 5.掩码255.240.0.0:/12 7 6.掩码255.248.0.0:/13 8 7.掩码255.252.0.0:/14 9 8.... 阅读全文
posted @ 2016-03-28 20:08 温故余学 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: 1 1)禁止所有表约束的SQL 2 select 'alter table '+name+' nocheck constraint all' from sysobjects where type='U' 3 4 2)删除所有表数据的SQL 5 select 'TRUNCATE TABLE '+name from sysobjects where type='U' 6 7 3)恢... 阅读全文
posted @ 2016-03-28 16:31 温故余学 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 1 添加約束的方式: [exec sp_helpconstraint 表名]->可用于查找到表创建的约束 2 CREATE TABLE stuInfo 3 ( 4 stuName VARCHAR(20) NOT NULL,非空約束 5 stuNo CHAR(6), Primary key(stuNo), 主鍵約束 6 stuAge INT NOT NULL check(stuA... 阅读全文
posted @ 2016-03-28 16:29 温故余学 阅读(861) 评论(0) 推荐(0) 编辑