持续更新........
在where in 条件中,查询出来的结果根据 in 中的顺序排序
select * from tableA where id in ('1111','333','222') order by field (id,'111','222','333')
根据一张表的数据更新另一张表
update tableA t1 set XX= (select t2.XX from tableB t2 where t1.id = t2.id)
持续更新........
在where in 条件中,查询出来的结果根据 in 中的顺序排序
select * from tableA where id in ('1111','333','222') order by field (id,'111','222','333')
根据一张表的数据更新另一张表
update tableA t1 set XX= (select t2.XX from tableB t2 where t1.id = t2.id)