postgressql下
'検索スキーマの中で、全てテーブル
select tablename from pg_tables where schemaname='test'
mysql下
'検索スキーマの中で、全てテーブル
select table_name from information_schema.tables where table_schema='csdb'
postgressql,mysql都可以
'テーブルの定義情報
select * from information_schema.columns where TABLE_SCHEMA='test';