| От | Mathieu Arnold |
|---|---|
| Тема | Re: Stripping white-space in SELECT statments |
| Дата | |
| Msg-id | 543384405.1032453683@andromede.reaumur.absolight.net обсуждение |
| Ответ на | Stripping white-space in SELECT statments (Thorbjörn Eriksson <thorbjorn.eriksson@ec.se>) |
| Список | pgsql-sql |
--On jeudi 19 septembre 2002 13:20 +0200 Thorbjörn Eriksson <thorbjorn.eriksson@ec.se> wrote: > Hello, > > I've encountered a strange behavior in postgres 7.2.1 regarding how psql > handles strings ending with space characters. > > If I want to search for records where the first column (artnrgrpmtrln_1) > begins with > '201901 ', our system that uses the database creates the following SQL > statement: > > select artnrgrpmtrln_1 from sr where (artnrgrpmtrln_1>='201901 ' and > artnrgrpmtrln_1<='201901 ÿ' and why not select artnrgrpmtrln_1 from sr where substr(artnrgrpmtrln_1, 0, 9) = '201901 ' -- Mathieu Arnold
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера