【发布时间】:2015-05-05 06:46:24
【问题描述】:
update pos
set a = concat_ws((select b from (select * from pos where a is not null limit 1) as ta), '', b)
where a is null
我想将a 列中的every row 更新为b 的last value 及其值b。
【问题讨论】:
-
那很混乱,提供一些示例数据和更新后的预期结果。
-
并选择mysql或sql-server
标签: mysql sql-server select sql-update