Select specific row from mysql table

前端 未结 6 586
忘掉有多难
忘掉有多难 2020-12-07 23:08

Ideally I need a query that is equivalent to

select * from customer where row_number() = 3

but that\'s illegal.

I can\'t u

6条回答
  •  误落风尘
    2020-12-07 23:37

    You cannot select a row like that. You have to specify a field whose values will be 3

    Here is a query that will work, if the field you are comparing against is id

    select * from customer where `id` = 3
    

提交回复
热议问题