sql - Update column of one table from same table -


i need update 1 column of table other same table

update table  set table1.name = table1.nickname table  userid = 5 

is there problem in query, please help.

looks you're adding syntax don't need...if data need there in table, so, regardless of flavor of sql (i think; wrong on part):

update dbo.tablename set columntochange = columnwithcorrectvalue userid = 5


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -