Oracle DB: How can I write query ignoring case?

前端 未结 8 2054
情歌与酒
情歌与酒 2020-12-05 16:48

As I had written in title, I have SQL query, run on Oracle DB, lets say:

SELECT * FROM TABLE WHERE TABLE.NAME Like \'IgNoReCaSe\'

If I woul

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 17:45

    ...also do the conversion to upper or lower outside of the query:

    tableName:= UPPER(someValue || '%');
    

    ...

    Select * from table where upper(table.name) like tableName 
    

提交回复
热议问题