WHERE parent IN (0,-1)

Поиск
Список
Период
Сортировка
От Drew Whittle
Тема WHERE parent IN (0,-1)
Дата
Msg-id 4.1.19990728114818.00a36030@pern.csarc.otago.ac.nz
обсуждение исходный текст
Ответы Re: [SQL] WHERE parent IN (0,-1)  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-sql
Hi,

I'm pretty new to Postgres, so please excuse my ignorance.

I have a sql script that uses WHERE parent IN (0,-1), this works fine with
MySQL, Access, & MS-SQL Server, unfortunately Postgres does not like this
statement, I can get around the problem (I think) by using WHERE parent IN
(0,'-1'). 

Is this valid? 

Is there another way to do this that works with Postgres and the others?
(They dont like the ' around -1)

Thanks,

Drew



В списке pgsql-sql по дате отправления:

Предыдущее
От: Jens Glaser
Дата:
Сообщение: Outer Joins, Foreign keys, subselects
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] WHERE parent IN (0,-1)