SQL query to make all data in a column UPPER CASE?

CloudMeta picture CloudMeta · May 13, 2009 · Viewed 207.3k times · Source

I need a SQL query to make all data in a column UPPER CASE?

Any ideas?

Answer

Tomalak picture Tomalak · May 13, 2009

Permanent:

UPDATE
  MyTable
SET
  MyColumn = UPPER(MyColumn)

Temporary:

SELECT
  UPPER(MyColumn) AS MyColumn
FROM
  MyTable