Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个新表,列如下:
id , name , tell , email
tell&的所有值都email被错误地设置为空。
tell
email
我有这张表的旧备份,没有~200条记录(有点旧)
如何仅使用tell&email列使用旧备份更新新表?
例如将旧表数据导出为更新查询并在新表上执行?
试试这个 ::
Update newTable nT inner join oldTable oT ON (nT.id=oT.id) set nT.tell = oT.tell, nT.email=oT.email