OK, I have an easy one for somebody out there. I am creating a table and I would like to assign one of the fields as the primary key.
Table create example:
I would like to assign the date field as the primary key but I am unsure how to do this, can you help?
Thanks in advance.
Table create example:
Code:
db2 -v "create table temp_table(ID varchar(6), date timestamp(30), acct_total decimal(9), cust_total decimal(9), txn_total decimal(9))"
Thanks in advance.
Comment