MS SQL String Function

Update column value to all to Upper Case or Lower Case:

UPDATE
MyTable
SET
MyColumn = UPPER/LOWER(MyColumn)

You can also to change all column values in a batch, like all integers multiply by 100:
UPDATE
MyTable
SET
MyColumn = 100 * MyColumn
Make sure it is number format.

See more String Functions on MSDN:
http://msdn.microsoft.com/en-us/library/ms181984.aspx

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s