Trouble with MySQL update joining with a view -
i'm trying update table values view. i'm using code:
update member, temp_status_date set member.status_date = temp_status_date.status_date member.status_date != temp_status_date.status_date
which in phpmyadmin giving error "#1054 - unknown column 'temp_status_date.status_date' in 'where clause'" doing wrong? isn't correct syntax, according official mysql documentation?
try this:
update member join temp_status_date on member.status_date != temp_status_date.status_date set member.status_date = temp_status_date.status_date;
Comments
Post a Comment