{"id":69,"date":"2010-07-14T12:55:48","date_gmt":"2010-07-14T12:55:48","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=69"},"modified":"2022-02-17T07:14:15","modified_gmt":"2022-02-17T07:14:15","slug":"general-update-statements","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/sql-server\/queries-microsoft-sql-server\/update\/general-update-statements","title":{"rendered":"General Update Statements"},"content":{"rendered":"<h4>Updating A Column Value In A Table<\/h4>\n<pre><code>\r\n\"UPDATE SomeTableName SET SomeColumnName=\" + Convert::ToString(NewValue) + \" WHERE SomeColumnName=\" + Convert::ToString(IdValueOfRecordToAlter)\r\n<\/code><\/pre>\n<p>Assumes MyNewValue is numeric, otherwise surround with &#8216; and &#8216;<\/p>\n<h4>Update 2 Column Values<\/h4>\n<pre><code>\r\n\"UPDATE SomeTableName SET SomeColumnName1=\" + Convert::ToString(NewValue) + \", SomeColumnName2=\\'\" + NewString + \"\\' WHERE SomeColumnName=\" + Convert::ToString(IdValueOfRecordToAlter);\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Updating A Column Value In A Table &#8220;UPDATE SomeTableName SET SomeColumnName=&#8221; + Convert::ToString(NewValue) + &#8221; WHERE SomeColumnName=&#8221; + Convert::ToString(IdValueOfRecordToAlter) Assumes MyNewValue is numeric, otherwise surround with &#8216; and &#8216; Update 2 Column Values &#8220;UPDATE SomeTableName SET SomeColumnName1=&#8221; + Convert::ToString(NewValue) + &#8220;, SomeColumnName2=\\'&#8221; + NewString + &#8220;\\&#8217; WHERE SomeColumnName=&#8221; + Convert::ToString(IdValueOfRecordToAlter);<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-update"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":6,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/69\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}