Answer the question
In order to leave comments, you need to log in
Mysql update one table with data from another how?
here is the code:
update
table_a, table_b
set
table_a.column1 = table_b.column1,
table_a.column2 = table_b.column2
where
table_a.column3 = table_b.column3
limit 1
1121: Incorrect usage of UPDATE and LIMIT
Answer the question
In order to leave comments, you need to log in
It turns out you can't use LIMIT when UPDATE a table with data from another table...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question