Tables in a query

arvindn

Registered User.
Local time
Tomorrow, 02:51
Joined
Oct 1, 2003
Messages
99
I need to know the names of tables from which a SQL select query pulls in data. For eg. if the query is

select * from bills inner join customers on bills.cust_id=customers.cust_id

i will pass the SQL string as an argument to the function and it should return a string "bills;customers" which i can then split to get the names of the tables.

Thanks in advance.
 
Build the query in the QBE frame, then convert it to SQL, then cut and paste it in you code.
 
Thank u. Someone else who is smarter out there ?
 

Users who are viewing this thread

Back
Top Bottom