悉野小楼

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

06 2012 档案

Sql 更新一列为行号
摘要:update employeeset emp_id=t1.rowIdfrom( --select * from --( select Emp_UserName,ROW_NUMBER() over(Order by emp_username) as rowId from employee ) as t1 where t1.Emp_UserName=employee.Emp_UserName--) as thttp://social.msdn.microsoft.com/Forums/zh-CN/sqlserverzhchs/thread/6160088e-524f-412c-93be-e76.. 阅读全文

posted @ 2012-06-11 22:06 悉野 阅读(3167) 评论(0) 推荐(0) 编辑

Sql 删除表格的列
摘要:alter table mytable drop column mycol1, mycol2 阅读全文

posted @ 2012-06-11 11:06 悉野 阅读(256) 评论(0) 推荐(0) 编辑

T-Sql 查询表的列
摘要:select name from syscolumns where id = object_id(N'mytable') 阅读全文

posted @ 2012-06-11 11:05 悉野 阅读(143) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示