是否有可下載的包含虛擬數據的Postgres數據庫?最好羅斯文,這是我可以練習我的查詢想法我可以在哪裏下載PostgreSQL的Northwind數據庫?
5
A
回答
1
有可作爲pgFoundry項目數量樣本數據庫在http://pgfoundry.org/projects/dbsamples/
1
如果你真的想要那個特定的一個,你可以從搶羅斯文的PostgreSQL的端口DbLinq單元測試數據集。請參閱http://groups.google.com/group/dblinq/web/unit-tests,瞭解如何做到這一點。
8
我能夠從
http://www.antepedia.com/detail/p/48023267.html
專門
下載(PostgreSQL的)Northwind數據庫已廢棄: http://northwindextended.googlecode.com/files/northwind.postgre.sql]
[更新時間:Oct 2016] https://code.google.com/archive/p/northwindextended/downloads
加載/訪問數據庫:
sudo -u postgres psql ## or: sudo su postgres
postgres=# \i northwind.postgre.sql;
postgres=# \d
List of relations
Schema | Name | Type | Owner
--------+----------------------+-------+----------
public | categories | table | postgres
public | customercustomerdemo | table | postgres
public | customerdemographics | table | postgres
public | customers | table | postgres
public | employees | table | postgres
public | employeeterritories | table | postgres
public | order_details | table | postgres
public | orders | table | postgres
public | products | table | postgres
public | region | table | postgres
public | shippers | table | postgres
public | shippers_tmp | table | postgres
public | suppliers | table | postgres
public | territories | table | postgres
public | usstates | table | postgres
(15 rows)
postgres=# \d customers;
Table "public.customers"
Column | Type | Modifiers
--------------+-----------------------+-----------
CustomerID | bpchar | not null
CompanyName | character varying(40) | not null
ContactName | character varying(30) |
ContactTitle | character varying(30) |
Address | character varying(60) |
City | character varying(15) |
Region | character varying(15) |
PostalCode | character varying(10) |
Country | character varying(15) |
Phone | character varying(24) |
Fax | character varying(24) |
Indexes:
"pk_customers" PRIMARY KEY, btree ("CustomerID")
# Note the following query error:
postgres=# SELECT DISTINCT City FROM customers ORDER BY City;
ERROR: column "city" does not exist
LINE 1: SELECT DISTINCT City FROM customers ORDER BY City;
^
# ... use use double-quotes if your column name
# (etc.) contains some uppercase characters:
postgres=# SELECT DISTINCT "City" FROM customers ORDER BY "City";
City
-----------------
Aachen
Albuquerque
Anchorage
Århus
Barcelona
[ ... snip! ... ]
Tsawassen
Vancouver
Versailles
Walla Walla
Warszawa
該數據庫使用(例如)在這個優秀的在線教程(我跳過前面幾頁,第一頁是提到它):
4
相關問題
- 1. 我在哪裏可以下載Access 2003示例數據庫Northwind.mdb
- 2. 我在哪裏可以下載示例Mysql數據庫?
- 3. 對於etl,我可以在哪裏下載數據以構建數據倉庫
- 4. 我在哪裏可以下載OSX的PostgreSQL 8.2.16安裝程序?
- 5. 我在哪裏可以下載已輸入數據的模板sql數據庫?
- 6. 在哪裏可以下載這個版本的adventureworks數據庫
- 7. 我可以在哪裏下載OolongEngine?
- 8. 我在哪裏可以下載nhibernate.caches.syscache 3.1
- 9. 我在哪裏可以下載「mod_wsgi.so」
- 10. 我在哪裏可以下載GenomeDiagram?
- 11. 我在哪裏可以下載FBProfileExpressionKit?
- 12. 我在哪裏可以下載JNLP.jar
- 13. 我在哪裏可以下載TraceMonkey?
- 14. 我在哪裏可以下載ExpressionEngine Core?
- 15. 我在哪裏可以下載RE2?
- 16. 我在哪裏可以下載php_dbase.dll?
- 17. 我在哪裏可以下載Grails 2.1.4
- 18. 我在哪裏可以下載iPhone 3.1?
- 19. 我在哪裏可以下載JOGL?
- 20. 我可以在哪裏下載AppleScript Studio?
- 21. 我在哪裏可以下載CCValidator?
- 22. 我在哪裏可以下載JetBrains JDK?
- 23. 我在哪裏可以下載DDESpy?
- 24. 我在哪裏可以下載gd.h?
- 25. 我可以在哪裏下載PowerBuilder 8?
- 26. 我在哪裏可以下載common-annotations.jar
- 27. 我在哪裏可以下載Sharepoint DLL
- 28. 我在哪裏可以下載AjaxControlToolkit 4.1.50927?
- 29. 我在哪裏可以下載Coldfusion文檔數據?
- 30. 我在哪裏可以下載Akka 2.5.6的庫.jar文件?
的dbsamples頁被刪除psql的命令獲得羅斯文數據庫創建腳本。哪裏? – 42n4 2015-04-28 09:48:27
是的,頁面不再存在了 – Fra 2016-04-04 17:37:58