| От | Tony Caduto |
|---|---|
| Тема | what am I doing wrong with this query? |
| Дата | |
| Msg-id | 43D11A01.5020605@amsoftwaredesign.com обсуждение исходный текст |
| Ответы |
Re: what am I doing wrong with this query?
Re: what am I doing wrong with this query? |
| Список | pgsql-general |
select array_to_string(conkey,',') from pg_constraint where contype = 'p' and conrelid = 17059 returns a value of 1,2,18 for the array to string function, when I do this it does not return true: select case when 18 in (array_to_string(conkey,',')) then true else false end from pg_constraint where contype = 'p' and conrelid = 17059 but this one does return true select case when 18 in (1,2,18) then true else false end from pg_constraint where contype = 'p' and conrelid = 17059 How come the function does not work in the IN statement? I tried casting it to a varchar, but that did not work either. Thanks, Tony
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера