Hi, > in my app i run a lot of query with matching condition, i.e. > SELECT ... WHERE ... LIKE 'xxx%' > SELECT ... WHERE ... LIKE '%xxx' > SELECT ... WHERE ... LIKE '%xxx%' > i noted that this search is case sensitive but i need to be able to > set if the matching must be case sensitive or not. > > case sensitive = true: > SELECT ...... WHERE name='Sal%' : return 1 record > SELECT ...... WHERE name='sal%' : return 0 record > case sensitive = false > SELECT ...... WHERE name='Sal%' : return 1 record > SELECT ...... WHERE name='sal%' : return 1 record > > is this possible?
You can use: SELECT ...... WHERE upper(name)='SAL%' regards, Dario -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
