[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 03-31-2006, 11:53 AM   #1 (permalink)
NamePros Regular
 
shreder's Avatar
 
Join Date: Mar 2006
Posts: 779
5.00 NP$ (Donate)

shreder is a name known to allshreder is a name known to allshreder is a name known to allshreder is a name known to allshreder is a name known to allshreder is a name known to all

Protect Our Planet
SCV/XLS To MySQL Converter? I will pay 50 NP$

Does anyone have a tool/script that converts Excel files or SCV files to MySQL?

I will pay 50NP$ to whoever gives me a script or a link to a free script.

Thank you!
__________________
EKED.COM BDPU.COM FFHF.COM BXNN.COM SFUZ.COM OOHH.NET EOEI.COM NSTO.COM SPMQ.COM CODV.COM - Pm Offers
"What doesn't kill you only makes you stronger..."
shreder is offline  
Old 03-31-2006, 09:30 PM   #2 (permalink)
Senior Member
 
dongan's Avatar
 
Join Date: Nov 2005
Location: www.brainjava.com
Posts: 2,000
197.91 NP$ (Donate)

dongan is a splendid one to beholddongan is a splendid one to beholddongan is a splendid one to beholddongan is a splendid one to beholddongan is a splendid one to beholddongan is a splendid one to beholddongan is a splendid one to behold


Quote:
Originally Posted by shreder
Does anyone have a tool/script that converts Excel files or SCV files to MySQL?

I will pay 50NP$ to whoever gives me a script or a link to a free script.

Thank you!
If you have a CSV file, you can strightway, import them into database without any problem.
dongan is offline  
Old 04-01-2006, 04:20 AM   #3 (permalink)
NamePros Regular
 
Join Date: Mar 2006
Posts: 394
211.38 NP$ (Donate)

sacx13 is on a distinguished road


Lightbulb

I think you cannot find a script to export directly to mysql syntax... but you can export in text file and after that to import directly in mysql.

To export in text File use http://bioinformatics.uams.edu/micro...ls/Excel2text/

If you want to import a csv to mysql try to use :
http://www.stadtaus.com/php_scripts/...sql_script.php

Also is very easy to import a csv in mysql diretcly from mysql command line or froma a query shell:
LOAD DATA LOCAL INFILE '/tmp/csv.file' INTO TABLE `table` FIELDS TERMINATED BY ',' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'

Regards

Quote:
Originally Posted by sacx13
Also is very easy to import a csv in mysql diretcly from mysql command line or froma a query shell:
LOAD DATA LOCAL INFILE '/tmp/csv.file' INTO TABLE `table` FIELDS TERMINATED BY ',' ESCAPED BY '\\' LINES TERMINATED BY '\r\n'
For that csv.file need to be on server.

Regards
sacx13 is offline  
Old 04-01-2006, 07:42 AM   #4 (permalink)
NamePros Regular
 
Jim_'s Avatar
 
Join Date: Aug 2005
Posts: 585
285.40 NP$ (Donate)

Jim_ is a name known to allJim_ is a name known to allJim_ is a name known to allJim_ is a name known to allJim_ is a name known to allJim_ is a name known to all

Save The Children
mysqlimport --fields-optionally-enclosed-by=""" --fields-terminated-by=, --lines-terminated-by="\r\n" --user=YOUR_USERNAME --password=YOUR_PASSWORD YOUR_DATABASE YOUR_TABLE.csv

Try that command.

or give this script a try: http://codewalkers.com/seecode/448.html
__________________
ask me about the internet
Jim_ is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:05 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85