Database Case Insensitive Index?
问题 I have a query where I am searching against a string: SELECT county FROM city WHERE UPPER(name) = 'SAN FRANCISCO'; Now, this works fine, but it doesn't scale well, and I need to optimize it. I have found an option along the lines of creating a generated view, or something like that, but I was hoping for a simpler solution using an index. We are using DB2, and I really want to use an expression in an index, but this option seems to only be available on z/OS, however we are running Linux. I