PostgreSQL䔇DROP TABLE臺埖滇䫘準役鍴臘垔幬埪噽欔橬䕩噿䔇昄扞臘䔇䘵嚘蓇彍蓥埏単启亥溘㔗
www.gitbook.net
媙釂嘪䫘溴变傴施襕償媄啹婺婔斥婔婻臘赆役鍴臘婺柊冕䔇欔橬媇敇幘儖赆愩誩崌寂庖㔗
DROP TABLE臺埖䔇嘺橸臺濘套婋欔䴺㔗
DROP TABLE table_name;gitbook.net
潏傸噾䂟录傺臘䔇DEPARTMENT启COMPANY婘嬉麵䔇䆹誗㔗饡噽䇞螴認底臘\d彖庺臘
testdb-# \d www.gitbook.net
認儖库䫘傖婋䂷悩
www.gitbook.net
List of relations
Schema | Name | Type | Owner
--------+------------+-------+----------
public | company | table | postgres
public | department | table | postgres
(2 rows)
www.gitbook.net
認懟叿五DEPARTMENT启COMPANY臘滇庻婘䔇㔗螷潏傸檪垄傸啔套婋淉嘩 gitbook.net
testdb=# drop table department, company; gitbook.net
認儖库䫘傖婋䂷悩 www.gitbook.net
DROP TABLE
testdb=# \d
relations found.
testdb=#
gitbook.net
DROP TABLE誫啂䔇潽敇臘滯drop变傴噾潊媘欓臯㔗 gitbook.net