From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Drew Whittle <drew(at)albatross(dot)co(dot)nz> |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] WHERE parent IN (0,-1) |
Date: | 1999-07-28 00:09:07 |
Message-ID: | 199907280009.UAA20176@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
>
>
>
yes, that's a good workaround. Added to TODO list:
* select * from pg_class where oid in (0,-1);
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1999-07-28 00:10:55 | Re: [SQL] Outer Joins, Foreign keys, subselects |
Previous Message | Drew Whittle | 1999-07-27 23:51:48 | WHERE parent IN (0,-1) |