十年網(wǎng)站開(kāi)發(fā)經(jīng)驗(yàn) + 多家企業(yè)客戶(hù) + 靠譜的建站團(tuán)隊(duì)
量身定制 + 運(yùn)營(yíng)維護(hù)+專(zhuān)業(yè)推廣+無(wú)憂(yōu)售后,網(wǎng)站問(wèn)題一站解決
創(chuàng)新互聯(lián)www.cdcxhl.cn八線(xiàn)動(dòng)態(tài)BGP香港云服務(wù)器提供商,新人活動(dòng)買(mǎi)多久送多久,劃算不套路!

這篇文章將為大家詳細(xì)講解有關(guān)postgresql查看有哪些表的方法,小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。
postgresql中可以用\d命令列出當(dāng)前數(shù)據(jù)庫(kù)中的所有表,例如:
# \d (列出當(dāng)前數(shù)據(jù)庫(kù)中的所有表),示例結(jié)果:
Schema | Name | Type | Owner public | company | table | postgres public | department | table | postgres
\d tablename 可以查看具體表格信息,例如:
#\d company (列出當(dāng)前數(shù)據(jù)庫(kù)中的company 表),示例結(jié)果:
Column | Type | Collation | Nullable id | integer | | not null name | text | | not null age | integer | | not null

關(guān)于postgresql查看有哪些表的方法就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到。