pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: vijayendra mohan agrawal <vijayendra.agrawal@wipro.com>
To: PostGre SQL Mailing List <pgsql-admin@postgresql.org>
Subject: FW: tablename.columnname support
Date: Sun, 17 Sep 2000 11:36:56 +0530
Message-ID: <004901c0206d$7ba35640$2a14a8c0@Protea.wipinfo.soft.net> (raw)
-----Original Message-----
From: Vijayendra M Agrawal [mailto:vijayendra.agrawal@wipro.com]
Sent: Sunday, September 17, 2000 11:24 AM
To: The Hermit Hacker
Subject: RE: [ADMIN] tablename.columnname support
Dear Hermit,
I didn't ask the question just for the sake of asking...
The design in my module is such that for any requests from the client side,
I have to do some DB operation. The operation could be either SELECT,
UPDATE, INSERT or DELETE in the database depending on the request id and the
data in the database. So, I am having a meta-data table in the database,
which will tell me what kind of operation to do on a particular request id,
what are the tables involved, what are the columns involved, what are the
keys for these tables, and what are the relations(join conditions) between
the tables involved. So, here in column names, I am storing columns in the
tablename.columnname format, becuase columns can be from many tables.
Here comes the problem specified in my query earliar...
If you have an idea, ORACLE supports tablename.columnname format in all
INSERT, SELECT, UPDATE and DELETE queries.
Anyway, thanks for your reply...
Thanks and regards,
Vijay
-----Original Message-----
From: The Hermit Hacker [mailto:scrappy@hub.org]
Sent: Saturday, September 16, 2000 8:50 PM
To: vijayendra mohan agrawal
Cc: PostGre SQL Mailing List
Subject: Re: [ADMIN] tablename.columnname support
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?
view thread (5+ messages) latest in thread
Message-ID: <004901c0206d$7ba35640$2a14a8c0@Protea.wipinfo.soft.net> Permalink: ../004901c0206d$7ba35640$2a14a8c0@Protea.wipinfo.soft.net/ Also on: postgresql.org/message-id/004901c0206d$7ba35640$2a14a8c0@Protea.wipinfo.soft.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: vijayendra.agrawal@wipro.com Subject: Re: FW: tablename.columnname support In-Reply-To: <004901c0206d$7ba35640$2a14a8c0@Protea.wipinfo.soft.net> References: <004901c0206d$7ba35640$2a14a8c0@Protea.wipinfo.soft.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