select * from d_table where id=@idIwant
SET @id:=0; select *,@id:=@id+1 as rowid from d_table;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)