home

Quickies, by Andrea Olivato

text

Show tables in #Postgres ( #SQL )

This is a quick replacement for the ‘show tables’ #mysql command when using #postgres. If you’re on a psql shell you can just do ‘\d’ the following scripts refers to the case you need to show tables from an external script.

select tablename from pg_tables where tableowner='yourname';

2 years ago

October 5, 2009
Comments (View)
blog comments powered by Disqus