如何批量修改数据?
SELECT dbo.cj.cjid, dbo.xs.xsid AS xsxsid, dbo.xs.xuehao, dbo.cj.xsidFROM dbo.xs INNER JOINdbo.cj ON dbo.xs.xuehao = dbo.cj.xuehao
update dbo.cj set dbo.cj.xsid=xs.xsidfrom dbo.xswhere dbo.xs.xuehao = dbo.cj.xuehao
[解决办法]
update cj set cj.xsid=xs.xsid
FROM dbo.xs INNER JOIN
dbo.cj ON dbo.xs.xuehao = dbo.cj.xuehao
[解决办法]