Oracle DB: How can I write query ignoring case?

前端 未结 8 1958
情歌与酒
情歌与酒 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条回答
  • Also don't forget the obvious, does the data in the tables need to have case? You could only insert rows already in lower case (or convert the existing DB rows to lower case) and be done with it right from the start.

    0 讨论(0)
  • 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 
    
    0 讨论(0)
提交回复
热议问题