日期:2014-05-18 浏览次数:20619 次
alter table 表2 add remoteid int update a set remoteid=b.remoteid from 表1 a inner join 表2 b on a.userid=b.userid
------解决方案--------------------
----表2增加一列remoteid alter table 表2 add remoteid int ---将表中remoteid值更新到表2中 update a set remoteid=b.remoteid from 表1 a inner join 表2 b on a.userid=b.userid
------解决方案--------------------
----表2增加一列remoteid alter table 表2 add remoteid int ---将表中remoteid值更新到表2中 update a set remoteid=b.remoteid from 表2 a inner join 表1 b on a.userid=b.userid