欢迎投稿

今日深度:

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

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

www.htsjk.Com true http://www.htsjk.com/postgresSQL/10411.html NewsArticle sql语句中,取得schema中的所有表信息及表的定义结构,sqlschema postgressql下 '検索スキーマの中で、全てテーブル select tablename from pg_tables where schemaname='test' mysql下 '検索スキーマの中で、...
相关文章
    暂无相关文章
评论暂时关闭