I have to update a super old database in oracle that didn't originally have a PK Id field. I need to populate this id field with 1,2,3,4 all with an SQL code and I can't think of how. Table name is Information and the new column is ID does anyone have an idea on how to do this. I have set the column to be incremental on trigger, but how do I update all the null values I have with inserting a new column?!
ALTER TABLE Information MODIFY ID INT IDENTITY(1,1)
GO