Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Import excel file into mysql database

6 views
Skip to first unread message

Johnny

unread,
Jan 19, 2004, 6:17:01 PM1/19/04
to
I was looking for information on how to import an excel file or other
text file into a MySql database. I have done this with both access
and SQL Server and am looking for a way to do this in MySql. I have
several hundred items i want to import into a parts database that is
currently in an excel file but can be saved as comma separated or
other format. Any help would be greatly appreciated. Thanks in
advance.

Zach

Jeff North

unread,
Jan 19, 2004, 7:12:40 PM1/19/04
to

Save your spreadsheet as a CSV (comma separated value) file.
---------------------------------------------------------------
jno...@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------

Johnny

unread,
Jan 19, 2004, 7:38:00 PM1/19/04
to

After I save the spreadsheet as a CSV file how do I import the data
into a MySQL table?

Jeff North

unread,
Jan 20, 2004, 4:20:10 AM1/20/04
to
On Tue, 20 Jan 2004 00:38:00 GMT, in mailing.database.mysql Johnny
<joh...@agent.com> wrote:

>| On Tue, 20 Jan 2004 00:12:40 GMT, Jeff North
>| <jno...@yourpantsbigpond.net.au> wrote:
>|
>| >On Mon, 19 Jan 2004 23:17:01 GMT, in mailing.database.mysql Johnny
>| ><joh...@agent.com> wrote:
>| >
>| >>| I was looking for information on how to import an excel file or other
>| >>| text file into a MySql database. I have done this with both access
>| >>| and SQL Server and am looking for a way to do this in MySql. I have
>| >>| several hundred items i want to import into a parts database that is
>| >>| currently in an excel file but can be saved as comma separated or
>| >>| other format. Any help would be greatly appreciated. Thanks in
>| >>| advance.
>| >
>| >Save your spreadsheet as a CSV (comma separated value) file.
>|

>| After I save the spreadsheet as a CSV file how do I import the data
>| into a MySQL table?

Look under the Load Data instruction. I use the following:
LOAD DATA LOCAL INFILE 'e:\\sydnet2\\_info\\curdocs.csv' INTO TABLE
pnp_docs_current FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES
TERMINATED BY '\n';

Message has been deleted

ma...@monitor.wc.lt

unread,
Jul 11, 2017, 11:22:54 AM7/11/17
to
Use http://excel2mysql.esy.es/ Excel to SQL online converter- Generates SQL insert script from xlsx , xls , csv files to easy import in MySQL database or MS SQL server.Hope it helps !


0 new messages