473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2647
-----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:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

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

iQA/AwUBQ9lAp4echKqOuFEgEQIcAACg9B/tJL8GGpnGOQDRSQh7GEx6Rl8AoM9E
58BFDD4mlHIMM9KYGD61oRyw
=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
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
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...
1
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...
0
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...
0
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...
1
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...
1
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
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
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.