hi,
my table has 2 columns col1,col2. col1 is primary key
i want to create a trigger that when i insert one parameter of col2,the col1 should be auto generated to the maximum , not by using identity or using sequence.
i should insert the second column only, when i insert, the primary key column also updated by its own by trigger in db2.