sql2000江湖救急!!! insert into 原表(字段...)select 字段... from 新表 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 字段转移有对应关系吗?或者两表都加自增列,根据自增列对应再update 就用insert into select对好字段,处理好新老字段类型和长度的关系 将新表中的数据按老表对应的顺序bcp出来EXEC master..xp_cmdshell 'bcp "select id1,id2,id3 from test.dbo.newtable" queryout e:\test.txt -c -U"sa" -P"pwd" -t","'同样把oldtable的也导出来,放到excel中对齐列,再次保存为txt格式.再导进老表中EXEC master..xp_cmdshell 'bcp test.dbo.oldtable in e:\test.txt -c -q -U "sa" -P "pwd" -t"|"' 数据库连接求解释 提个查询的问题 SQL2005 语句问题? 请问怎么查找想要的记录 TOP 和sum 一起怎么用 sql server2000能用windows 身份验证而不能用sa怎么办 大家来帮我一下,update 的问题 问个数据库效率问题 请教sql 计算字符数的问题 【难题】如何按时间分组 SQL2005中,表里面的字段的合并问题 怎么样创建自动增长列
或者两表都加自增列,根据自增列对应再update
对好字段,处理好新老字段类型和长度的关系
EXEC master..xp_cmdshell 'bcp "select id1,id2,id3 from test.dbo.newtable" queryout e:\test.txt -c -U"sa" -P"pwd" -t","'
同样把oldtable的也导出来,放到excel中对齐列,再次保存为txt格式.再导进老表中
EXEC master..xp_cmdshell 'bcp test.dbo.oldtable in e:\test.txt -c -q -U "sa" -P "pwd" -t"|"'