Received: from exmachina.net (mail.exmachina.net [194.78.13.13]) by hub.org (8.10.1/8.10.1) with ESMTP id e8GFxus12777 for ; Sat, 16 Sep 2000 11:59:56 -0400 (EDT) Received: from exmachina.net (194.78.13.18) by exmachina.net with ESMTP (Eudora Internet Mail Server 2.2.2); Sat, 16 Sep 2000 17:00:21 +0100 Message-ID: <39C398F4.2CBA2566@exmachina.net> Date: Sat, 16 Sep 2000 17:59:48 +0200 From: Jerome Slangen Organization: Ex Machina Interactive Architects X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en,fr-BE,nl-BE MIME-Version: 1.0 To: The Hermit Hacker CC: vijayendra mohan agrawal , PostGre SQL Mailing List Subject: Re: tablename.columnname support References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200009/49 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