Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9015449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:45:13+00:00 2026-06-16T03:45:13+00:00

I’ve been googling a lot for a SQL database with all (or the many

  • 0

I’ve been googling a lot for a SQL database with all (or the many as posible) the cities of the world,

But the best I’ve found is a .txt file with a format such as:

-1049671    Kassel          agglomeration   323216                      
-1049670    Kingston            agglomeration   956716                      
-1049669    Derry           agglomeration   98319                       
-1049668    Birmingham          agglomeration   1000010                     
-1049667    West Palm Beach         agglomeration   1370178                     
-1049666    Springfield         agglomeration   748567                      
-1049665    Philadelphia            agglomeration   6423182                     
-1049664    New York            agglomeration   23637491

And also other lines are such as:

467009670   Lillo           locality    3139    3972    -330    Spain   Kastilien-La 

    Mancha  Toledo  
    467009725   Tresjuncos          locality    363 3972    -275    Spain   Kastilien-La Mancha Cuenca  
    467009743   Alconchel de la Estrella            locality    129 3972    -257    Spain   Kastilien-La Mancha Cuenca  
    467009780   Valverde de Júcar           locality    1284    3972    -220    Spain   Kastilien-La Mancha Cuenca  
    467009793   Piqueras del Castillo           locality    71  3972    -207    Spain   Kastilien-La Mancha Cuenca  
    467009812   Almodóvar del Pinar         locality    452 3972    -188    Spain   Kastilien-La Mancha Cuenca  
    467009822   Paracuellos         locality    123 3972    -178    Spain   Kastilien-La Mancha Cuenca  
    467009857   Mira            locality    780 3972    -143    Spain   Kastilien-La Mancha Cuenca  
    467009965   Estivella           locality    1454    3972    -35 Spain   Valencia    Valence 
    467009975   Faura           locality    3872    3972    -25 Spain   Valencia    Valence 
    467010262   Valldemosa  Valdemosa, Valldemossa      locality    2098    3972    262 Spain   Balearen    Baléares    
    467010287   Lloseta         locality    5939    3972    287 Spain   Balearen    Baléares    
    467010291   Inca            locality    30441   3972    291 Spain   Balearen    Baléares    
    467010865   Terralba            locality    9610    3972    865 Italy   Sardinien

So the thing is I have no idea how to import this to mysql/sql tables.. and then be able to make querys.

Is there a way? Any SQL complete database if not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:45:15+00:00Added an answer on June 16, 2026 at 3:45 am

    Look at the LOAD DATA LOCAL INFILE statement in mysql

    http://dev.mysql.com/doc/refman/5.1/en/load-data.html

    basically you will end up with opening your file in excel or something like that, saving as .csv and then issue query

    LOAD DATA LOCAL INFILE 'c:\db.csv' INTO TABLE some_table FIELDS TERMINATED BY ';'
    

    of course your ‘some_table’ has to have appropriate structure and you have to adjust field separator to what you have chosen when saving .csv file.

    look at the docs I have provided to see further options, like setting file encoding or ignoring n first lines (useful if your file has header)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I'm outputting a post title and in our database, it's Hello Y’all
I want to count how many characters a certain string has in PHP, but
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
This could be a duplicate question, but I have no idea what search terms
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.