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

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -