Useful stock SQL datasets?

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

    Shadowman, better if you say detail list of what you want.

    • Blacklisted IP addresses - Ad? Xxx? Fraud?
    • Names of colleges/universities - All in the world? Wouldn't it be too much?

    Here is an idea how to drop down a list of something - this is how I do that:

    For example, I need a list of colleges/universities in California.

    1. I google for: colleges california wikipedia. Then open the first found item there;
    2. By using mouse I select all the colleges and universities from there to clipboard;
    3. Open Excel and paste copied names into the first row+column;
    4. In the second cell of the first row write templated script, like:

      ="INSERT INTO Colleges (state, name) VALUES ('CA', '" & RC[-1] & "');"
      

      This should produce something like

      INSERT INTO Colleges (state, name) VALUES ('CA', 'Academy of Art University, San Francisco');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'Allied American University, Laguna Hills (Online)');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'American Jewish University, Los Angeles');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'American Sports University, San Bernardino');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'Anaheim University, Anaheim (Online)');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'Antioch University, Culver City');
      -- etc...
      
    5. Then just copy generated script and use it for your database

提交回复
热议问题