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
Post a Comment