Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import into database from web

Status
Not open for further replies.

dagoat10

Programmer
Jun 3, 2010
74
US
Is there a way to import data from another website to mysql
for example stats from another site and import to another site, but continue to import it every hour or so?
 
um, i think you're going to need a lot more than that

first of all, you will have to go and extract the data you want from that web site somehow, and generate a file

next, you're going to have to expand the LOAD DATA command to (1) identify the table you're loading into, (2) identify the file you've created, and (3) specify where the fields are

r937.com | rudy.ca
Buy my new book Simply SQL from Amazon
 
If you want to do it live you could read the site as an HTTP stream and manipulate it in code, then SQL insert to get into the DB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top