If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL Stored Procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-29-10, 06:19
narayanyr narayanyr is offline
Registered User
 
Join Date: Apr 2010
Posts: 30
MySQL Stored Procedure

Hi,
I want a MySQL stored procedure which can parse an excel file and save it in the csv format,after which the values in the file can be imported into a table.


Kindly help me with a solution for this asap.

Thanks,
Narayana
Reply With Quote
  #2 (permalink)  
Old 04-29-10, 07:06
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
Originally Posted by narayanyr
I want a MySQL stored procedure which can parse an excel file and save it in the csv format,after which the values in the file can be imported into a table.

Kindly help me with a solution for this asap.
Why do you want a stored procedure to do this???

If you don't have too many files then just load the file in Excel and save it again as csv. If you getting lots of files from a single source then specify that you want data in a CSV format. Otherwise just use an off the shelf converter (try using google) or write a small 3GL program to do the conversion.

PS The forums are a way of getting answers to questions and not just a source of free labour.
__________________
Mike
Reply With Quote
  #3 (permalink)  
Old 04-29-10, 07:09
narayanyr narayanyr is offline
Registered User
 
Join Date: Apr 2010
Posts: 30
Actually there will be a lot of files and I need all the files to be parsed on the basis of a fixed set of rules.So need to develop this tool to take an input-xls file convert it to csv file with the required parsing implemented.

Further I want to load the csv file into the appropriate table in db - mysql

Thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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