Hi,
In DB2 on Z/OS, suppose i have a following Table...
Create Table TB1(col1 char(10) not null, col2 char(10) not null with default 'SAM')......
while inserting the records, if i do not have any value for column col2, which of the following performs better...
1. Insert the record by just providing col1 value. As i am not providing any value col2, DB2 determines the default value for col2 and inserts as 'SAM' for col2.
2.Since i am aware of default value for col2, i can write as
insert into tb1 values('WELLS','SAM')...In this case db2 do not require to determine the default value for col2.
Which of the above two options provides good performance of insert in heavy batch insert programs. I think it is the second option.
Can somebody validate the same....
Thanks
Ramesh