Are there any functions in MySQL like dense_rank() and row_number() like those provided by Oracle and other DBMS?
dense_rank()
row_number()
I want to generate an id
DENSE_RANK() function is available in MySQL version 8.0. So if you're using MySQL version 8.0 you can run this command,
DENSE_RANK()
SELECT name, DENSE_RANK() OVER ( ORDER BY value ) my_rank FROM table_name;