Thread

  1. PostgreSQL syntax question

    Stephen Davies <scldad@sdc.com.au> — 1998-09-18T05:07:28Z

    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
    
    
    
    
  2. Re: [SQL] PostgreSQL syntax question

    jose' soares <sferac@bo.nettuno.it> — 1998-09-18T13:13:37Z

    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'
    
    
    
    
  3. Re: [SQL] PostgreSQL syntax question

    Bruce Momjian <maillist@candle.pha.pa.us> — 1998-09-18T16:21:38Z

    > 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.        |