摘要: 1、将数据复制到一张新表中 select * into T1 from UserInfo select * from T1 2、将表info_two的数据全部添加到info_one中 insert into info_one select * from info_two 【into】可以省略 --指 阅读全文
posted @ 2016-06-12 16:44 天启♘ 阅读(216) 评论(0) 推荐(0) 编辑
摘要: --给sql server添加一个新用户[账号,密码,数据库名] execute sp_addlogin 'baishi', '123','db'; execute sp_addlogin 'wxn', '123' ,'db'; execute sp_addlogin 'hyz', '123' ,' 阅读全文
posted @ 2016-06-12 15:20 天启♘ 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1 --************************************** 视图 *********************************************** 2 --**********************[查询视图中的数据跟查询表中的数据一样处理]*************************** 3 --视图例1: 4 CREATE VIEW v... 阅读全文
posted @ 2016-06-12 13:46 天启♘ 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 当在记事本上按“F5”,会自动生成(系统的当前时间): 上午 11:31 2016/6/12 星期日 阅读全文
posted @ 2016-06-12 11:32 天启♘ 阅读(97) 评论(0) 推荐(0) 编辑