Select specific row from mysql table

前端 未结 6 585
忘掉有多难
忘掉有多难 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:17

    You can add an auto generated id field in the table and select by this id

    SELECT * FROM CUSTOMER WHERE CUSTOMER_ID = 3;
    

提交回复
热议问题