SQL changing a value to upper or lower case

后端 未结 5 940
一生所求
一生所求 2021-02-02 05:39

How do you make a field in a sql select statement all upper or lower case?

Example:

select firstname from Person

How do I make firstname always return up

5条回答
  •  佛祖请我去吃肉
    2021-02-02 05:51

    You can do:

    SELECT lower(FIRST NAME) ABC
    FROM PERSON
    

    NOTE: ABC is used if you want to change the name of the column

提交回复
热议问题