简体   繁体   中英

extracting meta info from a table psql using information_schema

How do I extract following meta information from a psql table. column_name, data_type, char_max_length,numeric_precision,constraint_type, constraint_reference, check_clause .In short the information that we have got by this query "\\d table_name".

-E标志开始psql ,并记下发出\\d table_name时生成的查询-您需要重现许多或大多数这些查询才能获取您要的所有元数据。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM