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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -