tags:

views:

111

answers:

1

hello sir How to get the row no through mysql query for each row? (i want to display sno) Please help me sir

+1  A: 

I believe you are looking to see if you can get the row number for each row through MySQL query right? here's one:

SELECT @rownum:=@rownum+1 AS ‘rownum’, t.* FROM `table` AS t, (SELECT @rownum:=0) `r`
thephpdeveloper
ok thank you sir. I Expect this only sir.
somu
no problem at all somu!
thephpdeveloper