Hi! to all!
I have got an issue.
* I maintain serial no. of rows tables in a column serial_no(which is set as primary key).
* while inserting i count the no of rows, "select count(*) from tbl", and increment one to it, and assign that as serial no to new row to be inserted.
is it the right way to achieve this. or is there any other better way to do it.
thanks in advance for your help.
I have got an issue.
* I maintain serial no. of rows tables in a column serial_no(which is set as primary key).
* while inserting i count the no of rows, "select count(*) from tbl", and increment one to it, and assign that as serial no to new row to be inserted.
is it the right way to achieve this. or is there any other better way to do it.
thanks in advance for your help.
Comment