1
如何讓我的數據庫結構沒有數據,(架構,表,...)作爲腳本通過命令行。postgresql數據庫結構腳本
如何讓我的數據庫結構沒有數據,(架構,表,...)作爲腳本通過命令行。postgresql數據庫結構腳本
http://www.postgresql.org/docs/current/interactive/app-pgdump.html
pg_dump -s -U username database > backup.sql
沒有測試過了,所以不知道它的工作原理。
編輯:有德國鏈接那裏;)
和英文版:http://www.postgresql.org/docs/current/interactive/app-pgdump.html -s只轉儲對象定義(模式),而不是數據。 – 2010-06-20 11:51:32
我剛剛注意到了錯誤的語言,編輯它 – DrColossos 2010-06-20 11:54:47
與beta文檔的鏈接有哪些? – 2010-06-20 12:00:06