| От | Lynn Manhart |
|---|---|
| Тема | using position in where |
| Дата | |
| Msg-id | 3C9F1C6915B24766B3BC396CA04A93C0@LynnPC обсуждение исходный текст |
| Ответ на | Re: How to change primary key in a table (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: using position in where
|
| Список | pgsql-novice |
I have an application where I need to "select" based on whether or not a
"text" column value contains a given substring. I have tried the "position"
function as follows, but it doesn't return anything:
select * in customers where position ('sub_string' in 'text_column') > 0;
Is there another way to do this?
Another question - how are upper and lower case handled when using "order
by"? In my experimenting, it seems to be doing a case insensitive compare,
but the docs I've read seem to indicate otherwise.
Thanks in advance,
Lynn
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера