I have big records to copy values from table B to table A. Currently I use:
UPDATE table_a, table_b
SET
table_a.column_a = table_b.column_a,
table_a.column_b = table_b.column_b,
table_a.column_c = table_b.column_c,
table_a.column_d = table_b.column_d,
table_a.column_z = table_b.column_z
WHERE
table_a.column_uid = table_b.column_uid
Current update statement is taking too long to execute because I'm on a notebook. Slow machine.
May I know other way to update these values?
首先:确保表A和B在列ID字段上都具有主键或索引。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.