alias in update SQL query is not working -


here sql query:

update q set q.firstname="ram" person q 

it gives me following error:

error 1: not prepare statement (1 near ".": syntax error)

can tell me went wrong this? in advance.

you use clause if update table data other table. if not just:

update person    set firstname='ram' 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -