How to generate row number in SQL Without ROWNUM | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to generate row number in SQL Without ROWNUM

29th Oct 2016, 1:00 PM
Rahul Soni
2 Answers
0
Hou could add a new column of type 'Int' with the constraint auto_oncrement: ALTER table ADD COLUMN rno int auto_incrememt
30th Oct 2016, 12:52 AM
Peter
0
Using Over partition !
1st Nov 2016, 11:32 PM
Armando Daniel Armenta Bustamante
Armando Daniel Armenta Bustamante - avatar