CASE .. WHEN expression in Oracle SQL

前端 未结 9 874
北荒
北荒 2020-12-04 13:17

I have the table with 1 column and has following data

Status
a1
i
t
a2
a3

I want to display the following result in my select query

9条回答
  •  萌比男神i
    2020-12-04 13:56

    You can only check the first character of the status. For this you use substring function.

    substr(status, 1,1)

    In your case past.

提交回复
热议问题