The moose likes JDBC and Relational Databases and the fly likes MySQL get the row number 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 "MySQL get the row number" Watch "MySQL get the row number" New topic

MySQL get the row number

Jeppe Sommer
Ranch Hand

Joined: Jan 07, 2004
Posts: 270

Is it possible in mySQL (4.x) to get the row number using only a SQL query?

The result should be some like:

[ December 20, 2006: Message edited by: Jeppe Fjord ]
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Here's the response that somebody from MySQL gave to that question when it was asked on MySQL's forum.
I agree. Here's the link:
subject: MySQL get the row number
It's not a secret anymore!