Oracle DB: How can I write query ignoring case?

前端 未结 8 2092
情歌与酒
情歌与酒 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:30

    You can use the upper() function in your query, and to increase performance you can use a function-base index

     CREATE INDEX upper_index_name ON table(upper(name))
    

提交回复
热议问题