sql语句中,取得schema中的所有表信息及表的定义结构,sqlschema
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';
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。