Reputation: 28059
I am familiar with MySQL, and was under the impression that Microsoft SQL wasn't that different in syntax for the simple stuff.
So whenever I wanted to update the Published field (a boolean) on every row on a table called Country to false, I did this:
UPDATE Country SET Published = false;
When I execute the query, I get this error:
What am I doing wrong?
Thanks
Upvotes: 1
Views: 92
Reputation: 263723
Wrap the value for Published
with single quote,
UPDATE Country SET Published = 'false';
Upvotes: 3