Database Case Insensitive Index?

前端 未结 6 1213
无人及你
无人及你 2021-01-12 16:30

I have a query where I am searching against a string:

SELECT county FROM city WHERE UPPER(name) = \'SAN FRANCISCO\';

Now, this works fine,

6条回答
  •  旧巷少年郎
    2021-01-12 16:59

    Oracle supports function-based indexes. Their canonical example:

     create index emp_upper_idx on emp(upper(ename));  
    

提交回复
热议问题