sql server怎么实现一张表的多列数据插入另一张表的一列
sql吧
全部回复
仅看楼主
level 4
jgmwg- 楼主
2020年12月14日 07点12分 1
level 4
jgmwg- 楼主
谢谢大佬们
2020年12月14日 07点12分 3
level 2
select cast(A列 as varchar)+ cast(B列 as varchar) + cast(C列 as varchar)
as aaa into #临时表
from 表A
表B 有没有数据的,空白表直接用 insert into 临时表就行了,如果有数据 就用临时表继续完善,最后覆盖掉 表B ,最后删除临时表
2020年12月16日 08点12分 5
如楼下我发的图那种的多列转1列,把表2的多列数据插入表1的一列中,不知道该怎么做
2020年12月16日 14点12分
@jgmwg- 图呢?
2020年12月17日 00点12分
@jgmwg- 你倒是给明确的表结构哇,你楼上也没有附上图,全凭空想。
2020年12月17日 02点12分
@waginxi 被删了……本来楼下发了图的……
2020年12月17日 14点12分
吧务
level 14
[呵呵]
2021年02月14日 02点02分 9
1