Are there any functions in MySQL like dense_rank() and row_number() like Oracle?

前端 未结 6 1989
别那么骄傲
别那么骄傲 2020-12-06 02:40

Are there any functions in MySQL like dense_rank() and row_number() like those provided by Oracle and other DBMS?

I want to generate an id

6条回答
  •  無奈伤痛
    2020-12-06 03:17

    In MySql you dont have dense_rank() or row_number() like the one in Oracle.

    But you can create the same functionality through SQL query:

    Here is an article doing the same:

    dense_rank()

    row_number()

提交回复
热议问题