Hi
Sim
Thanks for your response. I had it working from a
previous post by Adam Tomjack.
<snip>
-- A list of tables: SELECT schemaname, tablename FROM pg_tables; -- Returns true if a table exists: SELECT count(*)>0 FROM pg_tables WHERE schemaname='...' AND tablename='...' </snip>
Your
response does not work for me. Perhaps you can explain the posted
command
<snip>
* from pg_class where
relkind='r' and relname=your_tablename
</snip>
Kind
Regards,
Shaun Clements -----Original Message-----
From: Sim Zacks [mailto:sim@xxxxxxxxxxxxxx] Sent: 10 March 2005 01:24 PM To: pgsql-general@xxxxxxxxxxxxxx Subject: Re: pl sql to check if table of table_name exists
|