SQL Update query of a string field -


i have field "group" many different string values. want change rows field "pharmacy" , set same field "pharm". wrote query

update course set course.group = "pharm" course.group = "pharmacy" 

when run query, executes nothing change in db. there wrong?

use single quotes instead of double quotes

update course set course.[group] = 'pharm' course.[group] = 'pharmacy' 

double quotes object identifiers in sql server, , single quotes string identifiers.


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -