postgresql中可以用\d命令列出当前数据库中的所有表,例如:
# \d (列出当前数据库中的所有表),示例结果:
Schema | Name | Type | Owner public | company | table | postgres public | department | table | postgres
\d tablename 可以查看具体表格信息,例如:
#\d company (列出当前数据库中的company 表),示例结果:
Column | Type | Collation | Nullable id | integer | | not null name | text | | not null age | integer | | not null
Python学习网,大量的免费,欢迎在线学习!
Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务