IndexScript Forum  

Go Back   IndexScript Forum > Web Development > MySQL Database
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2008, 02:01 PM
snachala snachala is offline
Junior Member
 
Join Date: Mar 2008
Posts: 1
Smile import http CSV or TXT to database ???

Is it possible to create a script to import the contence os a CSV or TXT file that is hosted live on the internet straight in to your database without first having to save the file to your computer ?????

If so please could some one point me in the right direction so that i can do it...

Last edited by hakon : 01-14-2010 at 01:33 AM.
Reply With Quote
  #2  
Old 11-06-2008, 05:18 AM
BargainPredator BargainPredator is offline
Junior Member
 
Join Date: Nov 2008
Posts: 1
Default

This is a very good question. I never tried it but...

If you use java to interact (JDBC connector) I tink you could probably successed by using the P.setBinaryStream(int parameterIndex, InputStream x, int length) or the setAsciiStream(int parameterIndex, InputStream x, int length) functions in the java.sql.PreparedStatement class. Anyway that is waere I would start.
Reply With Quote
  #3  
Old 12-30-2009, 11:50 AM
Endeamy09's Avatar
Endeamy09 Endeamy09 is offline
Junior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 7
Send a message via ICQ to Endeamy09
Default import http CSV or TXT to database

Hi,

Did you notice that MySQL actually supports upload files into database? ie. CSV file.

You can upload your files by using LOAD DATA INFILE
Reply With Quote
  #4  
Old 07-07-2010, 04:16 AM
OlgaShtain's Avatar
OlgaShtain OlgaShtain is offline
Junior Member
 
Join Date: Jul 2010
Posts: 1
Default import http CSV or TXT to database

There is no import function on phpmyadmin anymore. It posed too many problems for users who tried to import their own sql bases. The only thing available which even comes close is to use the big SQL button in phpmyadmin to either copy/paste your sql in bits into your database or import a small txt file... otherwise their is no import feature.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:47 AM.



Same Author: URL Shortening Script ]

Partners: IT Support Blog | Free Games | iWebzen Web Directory | PR Home Pages Web Directory ]





Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.