db2 - Foreign keys in tables -
when create foreign key in table become duplicate index?
in db2 z/os, if create table foreign key, not have define index on underlying column.
an index not defined automatically when create table. if want one, can create 1 separately (via create index
statement). think common define index includes foreign key column(s), not requirement. depends on how application accesses data.
for overview on db2 keys, check out: http://publib.boulder.ibm.com/infocenter/zos/basics/index.jsp?topic=/com.ibm.db2z.doc.intro/db2z_keys.html.
Comments
Post a Comment