1
(click on this box to dismiss)
Is string comparison in CUBRID case insensitive?
When CUBRID performs a string search, does it use case-insensitive comparison or case-sensitive? Is there any parameter to control this behavior?
1
Answer
2
It depends on how you do the comparison. Assume you have a table users which has a record where name = 'eye'.
SELECT * FROM users WHERE name = 'Eye';
= operator will give no results, since it is case-sensitive.
SELECT * FROM users WHERE STRCMP(user_id, 'Eye') = 0;
STRCMP function will return that record regarless the case.
tagged
asked 2 years ago
viewed 517 times