Answer the question
In order to leave comments, you need to log in
How to correctly access a table field in a database?
UPDATE Test SET second_name = Second_name.id WHERE Test.second_name = second_name.Second_name;
Unknown column 'second_name.Second_name' in 'where clause'
Answer the question
In order to leave comments, you need to log in
If I understood the query correctly, then you are trying to put a value from another table. Then the question is, why don't you join with the Second_name table by condition in the where clause?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question