I previously applied this request ... which works great and was answered by one of the participants in this forum.
UPDATE
jos_jbjobs_jobseeker a
INNER JOIN jos_users b ON a.email = b.email
SET
a.user_id = b.id
Now I want to use the same query, adding another condition ... i.e.
Set a.user_id = b.id only if a.user_id is empty,
can i apply this:
if a.user_id = '' SET a.user_id = b.id;
?
source
share