On Thu, 30 Nov 2000, Thomas Lockhart wrote: > > Is "if" clause support in PG? > > for example: > > "drop table aa if exist" > > "insert into aa values(1) if not exists select * from aa where i=1" > > No. afaict it is not in any SQL standard, so is unlikely to get much > attention from developers. Plus, for that second one can't you just do: INSERT INTO aa SELECT 1 WHERE NOT EXISTS (SELECT * FROM aa WHERE i=1); - Andrew
- Re: [HACKERS] beta testing ... Magnus Naeslund\(f\)
- Re: [HACKERS] beta testing ... Don Baccus
- Re: [HACKERS] beta testing ... Magnus Naeslund\(f\)
- Re: [HACKERS] beta testing ... Tom Lane
- Re: [HACKERS] beta testing ... The Hermit Hacker
- Re: [HACKERS] beta testing ... Thomas Lockhart
- Re: [HACKERS] beta testing ... The Hermit Hacker
- Re: [HACKERS] Please advise features in ... Ross J. Reedstrom
- Re: [HACKERS] Please advise features in ... xuyifeng
- Re: [HACKERS] Please advise features... Thomas Lockhart
- Re: [HACKERS] Please advise fea... Andrew Snow
- Re: [HACKERS] Please advise fea... Don Baccus
- Re: [HACKERS] Please advise features in 7.1 john huttley
- Re: [HACKERS] Please advise features in 7.1 Philip Warner
- Re: [HACKERS] Please advise features in 7.1 Don Baccus