| От | Abe |
|---|---|
| Тема | Simple Question: Case sensitivity |
| Дата | |
| Msg-id | 006501c062a4$07ccba30$6500a8c0@win2k обсуждение исходный текст |
| Ответ на | Problems with Mandrake RPM (John Pilley <jpilley@spescrow.com>) |
| Ответы |
Re: Simple Question: Case sensitivity
|
| Список | pgsql-general |
This is probably an easy question for most but here goes: I am using PHP3 and postgres 6.5 I am trying to do a search on a peoples database and it works fine except for the fact that I want to make it case insensitive as some in the database are Smith and some are jones. Is this a scripting thing or can it be done in my query. Here is the query: $sql = "select surname, firstname, title, company, worktel, ext, hometel, mobile, email, emailtwo from employees where firstname like '%$criteria%' or surname like '%$criteria%'"; Thanks in advance, Abe
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера