SQL to find upper case words from a column

后端 未结 7 1494
南笙
南笙 2020-12-10 02:56

I have a description column in my table and its values are:

This is a EXAMPLE
This is a TEST
This is a VALUE

I want to display only EXAMPLE

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 03:34

    Try this:

    SELECT SUBSTR(column_name, INSTR(column_name,' ',-1) + 1)
    FROM your_table;
    

提交回复
热议问题