Useful stock SQL datasets?

后端 未结 7 1099
隐瞒了意图╮
隐瞒了意图╮ 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:51

    The MySQL documentation site has a list to a downloadable dataset already in SQL format, ready for use in a database.

    1. Download the dataset, such as the world database: http://downloads.mysql.com/docs/world_innodb.sql.gz
    2. Change directory into the folder you downloaded to, e.g. cd Downloads
    3. Unzip gunzip world_innodb.sql.gz
    4. Login to mysql and create a world database

    $ mysql mysql> create database world mysql> quit

    1. Import the contents of the mysqldump file using cat

    cat world_innodb.sql | mysql world

    This dataset is idea for learners, looking to practice their SQL.

提交回复
热议问题