my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes Get index of a row Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Get index of a row" Watch "Get index of a row" New topic

Get index of a row

dushantha Rathnayake
Ranch Hand

Joined: Feb 27, 2010
Posts: 103

My client has a MS Access database. Using this database I have to build a application. But I want to use Mysql database. So I have to get data from MS Access database. The problem is, In this MS Access tables there are no any Primary Keys. So I can't capture data correctly. But I have an idea about table row number. If I can get the index numbers of that rows I can capture them correctly. If anyone know about how to get the table row index number please tell me.

Thank you.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33127

Row numbers are a horrible way of tracking things - they can change when you reorganize your database. To change databases, you can do an export of the table to CSV.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Get index of a row
It's not a secret anymore!