Update t_ro2EX
inner join t_lX3pw on t_lX3pw.id = t_ro2EX.id
set t_ro2EX.column_bcde = concat_ws('----', t_lX3pw.column_5, t_lX3pw.column_7)
where t_lX3pw.column_20 > 0;
I wrote this query and it does not seem to finish.
The schema:
Both t_lX3pw and t_ro2EX have about 80,000 rows. The ids are the same, it is just csv data split in multiple tables. I am trying to concat a couple of columns and put them into a single column delimted by '----'
I get the following error:
Lock wait timeout exceeded; try restarting transaction
What is the problem with the query?