From: lothar.behrens@lollisoft.de
To: pgsql-odbc@postgresql.org
Subject: Best way of retrieving tablename from a query ?
Date: Sun, 17 Jul 2005 09:47:07 +0200
Message-ID: <42DA291B.7581.89AC3B@localhost> (raw)
Hi,
I have implemented a function to retrieve the table name from a SQL query by analysing
the SQL query string.
Now I tried to use the SQLColumns to do this, because avoiding special handling of joined
or multible tables in a query.
The orginal sample code uses an uninitialized hstmt in it's call, so I assumed, it must be the
statement, that I have created from the orginal query to retrieve the table from.
Is this correct, or is there a better way to do this ?
Thanks Lothar
--
Lothar Behrens | Rapid Prototyping ...
Rosmarinstr 3 |
40235 Düsseldorf | www.lollisoft.de
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-odbc@postgresql.org
Cc: lothar.behrens@lollisoft.de
Subject: Re: Best way of retrieving tablename from a query ?
In-Reply-To: <42DA291B.7581.89AC3B@localhost>
References: <42DA291B.7581.89AC3B@localhost>
* 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