mysql-error-1205

MySQL Error Code: 1205. Lock wait timeout during update with inner join

家住魔仙堡 提交于 2019-12-09 12:14:29
问题 I am trying to update the Time_Stamp field in my table, simple_pack_data , to match the values in the similarly titled field in my temp_data table. The tables each have fields called Test_Number and Time_Marker , which I'm using to INNER JOIN the tables. Time_Marker is like a reading count, where Time_Stamp is an actual time from the start of the test. I want to update the Time_Stamp one test at a time, so the code I have been trying is: UPDATE simple_pack_data s INNER JOIN ( SELECT * FROM

MySQL Error Code: 1205. Lock wait timeout during update with inner join

房东的猫 提交于 2019-12-03 13:46:09
I am trying to update the Time_Stamp field in my table, simple_pack_data , to match the values in the similarly titled field in my temp_data table. The tables each have fields called Test_Number and Time_Marker , which I'm using to INNER JOIN the tables. Time_Marker is like a reading count, where Time_Stamp is an actual time from the start of the test. I want to update the Time_Stamp one test at a time, so the code I have been trying is: UPDATE simple_pack_data s INNER JOIN ( SELECT * FROM temp_data t WHERE t.Test = "3" ) AS tmp ON s.Test_Number = tmp.Test_Number AND s.Time_Marker = tmp.Time