in reply to inserting new data into table

in mysql and postgres you can use auto_increment columns, and in Oracle a sequence will help you

-- tune