Useful stock SQL datasets?

后端 未结 7 1088
隐瞒了意图╮
隐瞒了意图╮ 2021-01-31 11:11

Does anyone know of any resources that provide good, useful stock datasets? For example, I\'ve downloaded a SQL script that includes all of the U.S. states, cities, and zipcode

相关标签:
7条回答
  • 2021-01-31 11:53

    EDIT: I will leave my previous answer. If you want to convert arbitrary CSV into SQL scripts for database use, read below. Otherwise, the Chinook Database offers excellent sample data with scripts that are compatible with a variety of relational databases.


    I was looking for sample basic SQL-like data sets to assist in teaching a friend how to make SQL queries. Some of the links posted here were no longer available, so I'll post what I ended up using.

    There are some pretty cool CSV data available from SpatialKey here.

    The CSV data can be used, if that's what you need, but I wanted the data in a SQLite database, so I used this handy CSV->SQL online converter.

    After I downloaded the SQL, I ran the following:

    At shell:

    sqlite3 <database_file>
    

    In SQLite shell:

    .load <path to SQL script file>
    
    0 讨论(0)
提交回复
热议问题