![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL Server
宇意
做一个更卓越的人
展开
-
SQL Server 查询结果插入表
a) 插入新表 select * into newtable from tableb) 插入已经存在的表 insert into table select * from table2 where...原创 2019-11-27 13:51:17 · 950 阅读 · 0 评论 -
SQL server 删除某一列
alter table [Casm_ChangeField].[dbo].[W_GuoJia] drop column [FENAME]原创 2019-11-27 13:50:03 · 5713 阅读 · 0 评论 -
SQL Server 根据另一张表更新表
a) 写法轻松,更新效率高: update table1 set field1=table2.field1,field2=table2.field2 from table2 where table1.id=table2.idb) 常规方式,这种写法相当于一个 Left join, 以外面的where为更新条数,如果不加where就是所有记录 up...原创 2019-11-27 13:49:05 · 1506 阅读 · 0 评论