473,587 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Import excel file into mysql database

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
Jul 19 '05 #1
8 31050
On Tue, 20 Jan 2004 00:12:40 GMT, Jeff North
<jn****@yourpan tsbigpond.net.a u> wrote:
On Mon, 19 Jan 2004 23:17:01 GMT, in mailing.databas e.mysql Johnny
<jo****@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.
---------------------------------------------------------------
jn****@yourpan tsbigpond.net.a u : Remove your pants to reply
---------------------------------------------------------------


After I save the spreadsheet as a CSV file how do I import the data
into a MySQL table?
Jul 19 '05 #2
On Mon, 19 Jan 2004 23:17:01 GMT, in mailing.databas e.mysql Johnny
<jo****@agent.c om> 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.
---------------------------------------------------------------
jn****@yourpant sbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 19 '05 #3
On Mon, 19 Jan 2004 23:17:01 GMT, in mailing.databas e.mysql Johnny
<jo****@agent.c om> 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.
---------------------------------------------------------------
jn****@yourpant sbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 19 '05 #4
On Tue, 20 Jan 2004 00:12:40 GMT, Jeff North
<jn****@yourpan tsbigpond.net.a u> wrote:
On Mon, 19 Jan 2004 23:17:01 GMT, in mailing.databas e.mysql Johnny
<jo****@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.
---------------------------------------------------------------
jn****@yourpan tsbigpond.net.a u : Remove your pants to reply
---------------------------------------------------------------


After I save the spreadsheet as a CSV file how do I import the data
into a MySQL table?
Jul 19 '05 #5
On Tue, 20 Jan 2004 00:12:40 GMT, Jeff North
<jn****@yourpan tsbigpond.net.a u> wrote:
On Mon, 19 Jan 2004 23:17:01 GMT, in mailing.databas e.mysql Johnny
<jo****@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.
---------------------------------------------------------------
jn****@yourpan tsbigpond.net.a u : Remove your pants to reply
---------------------------------------------------------------


After I save the spreadsheet as a CSV file how do I import the data
into a MySQL table?
Jul 19 '05 #6
On Tue, 20 Jan 2004 00:38:00 GMT, in mailing.databas e.mysql Johnny
<jo****@agent.c om> wrote:
| On Tue, 20 Jan 2004 00:12:40 GMT, Jeff North
| <jn****@yourpan tsbigpond.net.a u> wrote:
|
| >On Mon, 19 Jan 2004 23:17:01 GMT, in mailing.databas e.mysql Johnny
| ><jo****@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.c sv' INTO TABLE
pnp_docs_curren t FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES
TERMINATED BY '\n';

---------------------------------------------------------------
jn****@yourpant sbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 19 '05 #7
On Tue, 20 Jan 2004 00:38:00 GMT, in mailing.databas e.mysql Johnny
<jo****@agent.c om> wrote:
| On Tue, 20 Jan 2004 00:12:40 GMT, Jeff North
| <jn****@yourpan tsbigpond.net.a u> wrote:
|
| >On Mon, 19 Jan 2004 23:17:01 GMT, in mailing.databas e.mysql Johnny
| ><jo****@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.c sv' INTO TABLE
pnp_docs_curren t FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES
TERMINATED BY '\n';

---------------------------------------------------------------
jn****@yourpant sbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 19 '05 #8
On Tue, 20 Jan 2004 00:38:00 GMT, in mailing.databas e.mysql Johnny
<jo****@agent.c om> wrote:
| On Tue, 20 Jan 2004 00:12:40 GMT, Jeff North
| <jn****@yourpan tsbigpond.net.a u> wrote:
|
| >On Mon, 19 Jan 2004 23:17:01 GMT, in mailing.databas e.mysql Johnny
| ><jo****@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.c sv' INTO TABLE
pnp_docs_curren t FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES
TERMINATED BY '\n';

---------------------------------------------------------------
jn****@yourpant sbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1516
by: Johnny | last post by:
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...
3
6931
by: fkulaga | last post by:
Hi all, I have a problem with the issue in the subject, i have all data in one big excel file, in a denormalized form, and on the other side, i have mysql database with many tables, which is already in production, and it is of course in the 3rd NF. How do i go about importing that excel file , is there any good tool i could use to handle...
0
1730
by: ramyanet | last post by:
Dear all, Is there any way to directly transfer the data from excel to mysql database without using any tools,but thro coding. pls help me .hope i'll get a soln soon. Thanks Regds,
6
2287
by: sejal17 | last post by:
hello everyone, I want to import only 3 field of the excel file into database.how can i do it? Also i don't want to insert the duplicate value of that field.Please reply me as soon as possible. thanks in advance......
8
6432
by: qfchen | last post by:
Hi, A piece of simple code to import excel file to a database, as shown below, I have problem when I tried to open the connection, the error message shows Excel driver is not correct. where shall I get the correct driver string? thanks. Private Sub OpenExcelFile_FileOk(ByVal sender As System.Object, ByVal e As...
2
2899
by: jitendrawel | last post by:
how can be import excel file in mysql database through PHP code. Please send me complete code ASAP. Thanks. Best regards, Jitendra Kumar
1
8927
by: vikassawant | last post by:
Hi, I want to import Excel file data in JTable.For that I am using following Code, String excelFileName = "Team1.xls"; File file = new File(excelFileName ); //‘file’ is the file you want to load. JProgressBar progressBar = new JProgressBar(); JTableReadTableModelTask task = new JTableReadTableModelTask(file, null, progressBar,...
1
7105
by: orked | last post by:
i tried to import excel file into gridview but the code made this exception (Failed to map this path''xmlTest.xml") i don't know why my code: public void fillGrid() { DataSet ds = new DataSet(); ds.ReadXml(Server.MapPath("../xmlTest.xml")); GridView1.DataSource = ds; GridView1.DataBind(); } ...
4
2809
by: orked | last post by:
i want to import excel file to gridview but there was error(Failed to map this path "/xmltest.xml") and i couldn't handle it my code: public void fillGrid() { DataSet ds = new DataSet(); ds.ReadXml(Server.MapPath("../xmltest.xml")); GridView1.DataSource = ds; GridView1.DataBind(); } protected...
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.