database - SQL query for updating based on results -


i trying update records based on secondary statement dont know how link them together.

update website set cms_id = 99 select *  website is_scanned =  'yes' , cms_id =0 

i want update table website set colum cms_id 99 websites is_scanned = yes , cms_id = 0

will query work?

this query doesn't work ?

update website set cmd_id = 99 is_scanned = 'yes' , cms_id = 0; 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -