I have created a view in MySql. But now my requirement is to create an Id column in that view which should be auto increment.
My current view is:-
CR
You can simulate it with something like this in your SELECT:
SELECT @rownum:=@rownum+1 AS rownum, dummy.* FROM (SELECT @rownum:=0) r, dummy;