sql语句中,取得schema中的所有表信息及表的定义结构

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';

原文地址:https://www.cnblogs.com/killclock048/p/9405259.html