473,545 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

import data MySql with Access from Excel file

i try to copy data from excel into my MySql database which runs on a
linux.

i use MS Access to access the database. i need to optain the unique id
number, and this is where i have some troubles.

how can i either insert data, so my unique id number is continuing

or, how can i access my MySql database with MS Access without a "Unique
Record Identifier"?

i can connect to it without the "Unique Record Identifier", but then i
can't update/work the database.

any help appreciated, I am a beginner.

cheers dimitri

Jan 26 '06 #1
1 2654
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When you connect to the MySQL DB you have to indicate the Primary Key
column(s) in the MySQL table, otherwise the table will not be updateable
by Access.

When you link to the MySQL table a prompt will appear asking for the
Primary Key column(s). Select the columns in the table that uniquely
identify the row.

You can also assign the PK to a linked table, after it has been linked,
with a DDL statement like this:

ALTER TABLE <table name> ADD CONSTRAINT <constraint name>
PRIMARY KEY (<column list>)

E.g.:

ALTER TABLE Accounts ADD CONSTRAINT PK_Accounts
PRIMARY KEY (account_no, region_no)

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQ9lAp4echKq OuFEgEQIcAACg9B/tJL8GGpnGOQDRSQ h7GEx6Rl8AoM9E
58BFDD4mlHIMM9K YGD61oRyw
=DbWD
-----END PGP SIGNATURE-----
dimitri wrote:
i try to copy data from excel into my MySql database which runs on a
linux.

i use MS Access to access the database. i need to optain the unique id
number, and this is where i have some troubles.

how can i either insert data, so my unique id number is continuing

or, how can i access my MySql database with MS Access without a "Unique
Record Identifier"?

i can connect to it without the "Unique Record Identifier", but then i
can't update/work the database.

any help appreciated, I am a beginner.

cheers dimitri

Jan 26 '06 #2

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

Similar topics

1
13637
by: S. van Beek | last post by:
Dear reader, Is there somebody who can tell me the VBA code for the following action? To import data from an Excel sheet by referring to a cell name in the Excel sheet.
1
5530
by: Steve | last post by:
I am trying many ways to create and save data to an Excel file, but all I got is the following error message. (The code behind is in C#.net) System.UnauthorizedAccessException Here is my codes: 71: // Start a new workbook in Excel. 72: m_objExcel = new Excel.Application();
1
1248
by: lingammca | last post by:
Hi, I am working in a web application where I need to import data from one Excel file. Add a row number to each row in that file and save it in the specified folder. All this have to be done by clicking a single button. Pls help me in getting the solution for the above said problem. Thanks.
0
1769
by: MKH | last post by:
Greetings, OS = Windows 2000 Server SP4 SQL = MS SQL 2000 Server SP4 Language = T-SQL I have an excel file stored in a data base table as an image data type. I would like to somehow read the data from the excel file and extract its data into a data base table using t-sql.
0
1233
by: napstar | last post by:
I have an excel file with data.I want to pull data from the excel file into a table in access.The data in excel has products and customers who buy these products and sometimes 1 customer can buy many products. If i import into access will be able to show this realtionship? Please guys, this is urgent Thank for your anticipated responses..
1
1392
by: hanhan | last post by:
Hi all, I need to write a program in VB.Net 2003 for the pocket PC (with mobile 5), which will read data from an Excel file, and dispay them. I didn't succeed to create a correct connection to the Excel file. I tried few providers, as far as i tried the JET and OLEDB components are not suitable to use on a pocket pc program (in vb.net)....
1
2268
by: kanmbk | last post by:
Hi, I supposed to upload the data of an excel file in to database. I dont know how to do this. Please help me. Bharathi..
2
3991
by: mangalamonkey | last post by:
I want to export data into an excel file using iReports.I could do that but the data is displayed as an image. I need the data to be displayed as cells as in the excel sheet. plz do reply.........
6
2724
by: slinky | last post by:
I found the following code to transfer datagrid data to an Excel file. Is this written in C#?... I'm a vb.netter. I'm just not sure where to place the code to experiment on it. Should I place it in the event handler for a form button. Is there other ways to accomplish this? I looked at some on the web and usergroups, but was confused as to the...
1
2543
by: JFKJr | last post by:
Hi! I have exported an access table data into an excel file using the following code. However, the code exported all the data to the excel sheet starting from 'A' cell (first column). But I want to export all the data into the excel starting from cell B (second column) and include the heading "Extract Policy" followed by checkboxes in 'A' cell. ...
0
7475
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
7664
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7437
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...
0
7771
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5343
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
3465
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...
1
1900
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
1023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
720
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.