摘要: 5>...Select 5-1>选择列,5-2>distinct1>…From 表2>…Where 条件3>…Group by 列4>…Having 筛选条件6>…Order by 列7>...Top 阅读全文
posted @ 2013-03-26 18:22 chay 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 数据库约束是为了保证数据的完整性而实现的一套机制。非空约束 not null主键约束(PK)primary key constraint唯一且不为空唯一约束(UQ)unique constraint唯一、允许为空默认约束(DF)default constraint检查约束(CK)check constraint外键约束(FK)foreign key constraint-------------------手动修改表结构----------------------手动删除一列(删除EmpName列)alter table Employees drop column EmpName--手动增加一 阅读全文
posted @ 2013-03-26 17:03 chay 阅读(357) 评论(0) 推荐(0) 编辑