| От | Joseph Shraibman |
|---|---|
| Тема | selectecting not null varchars. |
| Дата | |
| Msg-id | 38B58AAE.B28DD6CB@selectacast.net обсуждение исходный текст |
| Ответы |
Re: [INTERFACES] selectecting not null varchars.
|
| Список | pgsql-interfaces |
I have a table with some text strings and I want to select row where the text fields have a value in them. I tried : select * from directory where length(h) > 0 ; and got: ERROR: Null input to textlen So I tried: select * from directory where h != null AND length(h) > 0 ; and got: ERROR: parser: parse error at or near "and" In fact this:select * from directory where h != null ; ... gets you this: ERROR: parser: parse error at or near ";" Trying to select where it is equal to null works. Trying to select where an int is not equal to a certain value works. But I cannot select where a varchar (or int) is not equal to null.
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера