473,699 Members | 2,230 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 2663
-----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
13648
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
5544
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
1253
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
1781
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
1239
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
1397
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). there's the code: Dim ds As DataSet
1
2272
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
4001
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
2733
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 functioning. BTW my datagrid is enclosed in a <div></divfor ease of scrolling if that would...
1
2547
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. Can anyone suggest me how to do this? Thanks a million in advance. Function ExportTableToExcel()...
0
8694
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9182
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9041
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8928
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8890
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7757
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5877
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4379
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2013
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.