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

后端 未结 2 742
無奈伤痛
無奈伤痛 2021-02-01 11:42

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

Any ideas?

2条回答
  •  野的像风
    2021-02-01 12:07

    Permanent:

    UPDATE
      MyTable
    SET
      MyColumn = UPPER(MyColumn)
    

    Temporary:

    SELECT
      UPPER(MyColumn) AS MyColumn
    FROM
      MyTable
    

提交回复
热议问题