pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PostgreSQL syntax question
3+ messages / 3 participants
[nested] [flat]

* PostgreSQL syntax question
@ 1998-09-18 05:07 Stephen Davies <scldad@sdc.com.au>
  1998-09-18 13:13 ` Re: [SQL] PostgreSQL syntax question Sferacarta Software <sferac@bo.nettuno.it>
  0 siblings, 1 reply; 3+ messages in thread

From: Stephen Davies @ 1998-09-18 05:07 UTC (permalink / raw)
  To: pgsql-sql@hub.org

The following syntax (which is legal under Oracle) does not parse under 
PostreSQL 6.3.2.

 update table1 set col1=(select col2 from table2 where col3='x') where col4='z';

Is there a variant of the syntax which does work?

Cheers and thanks,
Stephen.

========================================================================
Stephen Davies Consulting	    		                            scldad@sdc.com.au
Adelaide, South Australia.     			                            Voice: 61-8-82728863
Computing & Network solutions.	 	                            Fax: 61-8-82741015





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [SQL] PostgreSQL syntax question
  1998-09-18 05:07 PostgreSQL syntax question Stephen Davies <scldad@sdc.com.au>
@ 1998-09-18 13:13 ` Sferacarta Software <sferac@bo.nettuno.it>
  1998-09-18 16:21   ` Re: [SQL] PostgreSQL syntax question Bruce Momjian <maillist@candle.pha.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Sferacarta Software @ 1998-09-18 13:13 UTC (permalink / raw)
  To: pgsql-sql@hub.org, Stephen Davies <scldad@sdc.com.au>; +Cc: pgsql-hackers@postgresql.org

SD> The following syntax (which is legal under Oracle) does not parse under
SD> PostreSQL 6.3.2.

SD>  update table1 set col1=(select col2 from table2 where col3='x') where col4='z';
This syntax is SQL standard but seems that PostgreSQL doesn't
support "scalar subqueries" yet.
I don't see this on TODO things ? What about to add it to TODO file ?

Jose'





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [SQL] PostgreSQL syntax question
  1998-09-18 05:07 PostgreSQL syntax question Stephen Davies <scldad@sdc.com.au>
  1998-09-18 13:13 ` Re: [SQL] PostgreSQL syntax question Sferacarta Software <sferac@bo.nettuno.it>
@ 1998-09-18 16:21   ` Bruce Momjian <maillist@candle.pha.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 1998-09-18 16:21 UTC (permalink / raw)
  To: sferac@bo.nettuno.it; +Cc: pgsql-sql@hub.org; scldad@sdc.com.au; pgsql-hackers@postgreSQL.org

> SD> The following syntax (which is legal under Oracle) does not parse under
> SD> PostreSQL 6.3.2.
> 
> SD>  update table1 set col1=(select col2 from table2 where col3='x') where col4='z';
> This syntax is SQL standard but seems that PostgreSQL doesn't
> support "scalar subqueries" yet.
> I don't see this on TODO things ? What about to add it to TODO file ?

Already there:

	* Allow subqueries in target list
-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
http://www.op.net/~candle              |  (610) 353-9879(w)
  +  If your life is a hard drive,     |  (610) 853-3000(h)
  +  Christ can be your backup.        |



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~1998-09-18 16:21 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-09-18 05:07 PostgreSQL syntax question Stephen Davies <scldad@sdc.com.au>
1998-09-18 13:13 ` Sferacarta Software <sferac@bo.nettuno.it>
1998-09-18 16:21   ` Bruce Momjian <maillist@candle.pha.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox