摘要: 完整的select语句及执行顺序(必须记住)5...select 5.2->distinct 7...top n [percent] 5.1->列名 聚合函数(1.2->列名或表达式)1...1.1->from 表名2...where 条件3...group by ... 4...having ..... 阅读全文
posted @ 2015-07-22 11:25 cbwbin 阅读(588) 评论(0) 推荐(0) 编辑
摘要: set identity_insert 表名 on --打开insert into 表名 (自动增长ID列,……) values (100,……)set identity_insert 表名 off --关闭例如:set identity_inserttblClass on --打开insert i... 阅读全文
posted @ 2015-07-22 10:00 cbwbin 阅读(873) 评论(0) 推荐(0) 编辑