What exactly are you asking? How does one accomplish this with a stored procedure and/or database triggers and/or using
java and
jdbc?
If your asking how do you create a new column in a table, you first alter the table by using the SQL "ALTER TABLE <NAME> ADD Column <DETAILS>" either somewhere in your SQL code or via the JDBC interface. As for 'inserting' the values into a record, this is misleading terminology. You 'insert' rows/records into a table, you do not typically use the
word 'insert' when adding data INTO a column. To clarify, the 'insert' of the column is only done once when you alter the table. After which, you have to then 'update' each row.
Hope this clarifies a few things.
[ November 16, 2005: Message edited by: Scott Selikoff ]