note 15844 added to function.sql-regcase
| From: | admin at setcomputing dot com | Date: | Thu, 04 Oct 2001 23:57:47 +0000 |
| Subject: | note 15844 added to function.sql-regcase | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18587@lists.php.net to get a copy of this message | ||
Better solution would be to convert the SQL column to all upper-case or lower case while inserting
the data, once that's done, you can compare simply by saying:
where field_name LIKE upper('%pattern%')
As someone noted, this solution will keep the index intact because the upper function is performed
on the variable rather then the SQL Column..
--
http://www.php.net/manual/en/function.sql-regcase.php
http://master.php.net/manage/user-notes.php?action=edit+15844
http://master.php.net/manage/user-notes.php?action=delete+15844
http://master.php.net/manage/user-notes.php?action=reject+15844