pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ed Loehr <eloehr@austin.rr.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ice Planet <ice@adiemus.sk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Type conversion
Date: Tue, 20 Jun 2000 15:05:34 -0500
Message-ID: <394FCE8E.D522EEB2@austin.rr.com> (raw)
References: <SAK.2000.06.20.ogetqkls@adiemus>
	<1728.961530525@sss.pgh.pa.us>

Tom Lane wrote:
> 
> Ice Planet <ice@adiemus.sk> writes:
> > B: insert into t2 values (select int2(int4(b)) from t1 where a = 1)
> 
> Works for me when spelled correctly:

I think you can also leave out the 'values' for a sub-select insert,
though I haven't checked to see if it matters...

Regards,
Ed Loehr



view thread (8+ messages)  latest in thread

Message-ID: <394FCE8E.D522EEB2@austin.rr.com>
Permalink:  ../394FCE8E.D522EEB2@austin.rr.com/
Also on:    postgresql.org/message-id/394FCE8E.D522EEB2@austin.rr.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: eloehr@austin.rr.com, tgl@sss.pgh.pa.us, ice@adiemus.sk
  Subject: Re: Type conversion
  In-Reply-To: <394FCE8E.D522EEB2@austin.rr.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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