Languages
[Edit]
EN

MySQL - find row number

5 points
Created by:
WGates
412

In this article, we would like to show how to find row number in MySQL.

Quick solution:

 

Practical example

Edit

In the below example, we try to find row number where Simon Colins is placed - row number depends on internal SELECT query.

Example input:

Used table to find row number in MySQL.
Used table to find row number in MySQL.

Example query:

Example result:

Found row number in MySQL.
Found row number in MySQL.

Database preparation

Edit

create_tables.sql file:

insert_data.sql file:

 

References

Edit
  1. MySql - get row position with SELECT query 
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join