Any reason why this will return rows:
select users.user_fullname,concat(persons.first_name,' ',persons.last_name)
from users, persons
where users.user_id = persons.user_id
and users.user_fullname = '0'
Yet this throws a syntax error?
update users
set users.user_fullname = concat(persons.first_name,' ',persons.last_name)
from users, persons
where users.user_id = persons.user_id
and users.user_fullname = '0'
It has nothing to do with
CONCAT. The problem is that you should not have aFROMclause in anUPDATEstatement.