pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerome Slangen <jslangen@exmachina.net>
To: The Hermit Hacker <scrappy@hub.org>
Cc: vijayendra mohan agrawal <vijayendra.agrawal@wipro.com>
Cc: PostGre SQL Mailing List <pgsql-admin@postgresql.org>
Subject: Re: tablename.columnname support
Date: Sat, 16 Sep 2000 17:59:48 +0200
Message-ID: <39C398F4.2CBA2566@exmachina.net> (raw)
References: <Pine.BSF.4.21.0009161219340.57014-100000@thelab.hub.org>

The Hermit Hacker wrote:
> 
> On Sat, 16 Sep 2000, vijayendra mohan agrawal wrote:
> 
> > Hi all,
> >
> > say, we have a table created by :
> > create table a ( a char(11), b char(22) );
> >
> > For adding data into table 'a', ORACLE supports column name format as
> > tablename.columnname as follows :
> > insert into a ( a.a, a.b ) values ( 'xyz', 'abc') ;
> >
> > But, PostGreSQL doesn't support... It gives parse error as follows :
> > ERROR:  parser: parse error at or near "."
> >
> > Can this feature be added in PostGreSQL ???
> 
> stupid question, but why would you use that format instead of doing:
> 
> INSERT INTO a ( a, b ) VALUES ( 'xyz', 'abc' );
> 
> Why the tablename. in front?

Just for the example:

As I do for simple web form dump to a database,
by finding the inputs related to earch table
using that prefix (sugar, doing this in Lua can
automatically create an associative array :).

- Jay



view thread (5+ messages)  latest in thread

Message-ID: <39C398F4.2CBA2566@exmachina.net>
Permalink:  ../39C398F4.2CBA2566@exmachina.net/
Also on:    postgresql.org/message-id/39C398F4.2CBA2566@exmachina.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jslangen@exmachina.net, scrappy@hub.org, vijayendra.agrawal@wipro.com
  Subject: Re: tablename.columnname support
  In-Reply-To: <39C398F4.2CBA2566@exmachina.net>
  References: <Pine.BSF.4.21.0009161219340.57014-100000@thelab.hub.org> <39C398F4.2CBA2566@exmachina.net>

* 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