postgre數據庫單表批量更新

批量更新postgre數據庫
UPDATE tb_sub_task_org_assets_relation
SET update_time = now( ),
exec_detail = tmp.tmp_detail
FROM
(VALUES (‘13’,’{“xxx1”:“xxxx11”}’::json), (‘23’,’{“xxx1”:“xxxx12”}’::json)) as tmp(tmp_uuid, tmp_detail)
WHERE
uuid = tmp.tmp_uuid

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章