开发者

How to avoid duplicates while extract value from the composite key table?

开发者 https://www.devze.com 2022-12-11 00:27 出处:网络
**I have a table(table A) with composite primary key (3 columns)... i have to use one of the column as foreign key in another table(table B).. Now i want to extr开发者_JAVA百科actthe values from the t

**I have a table(table A) with composite primary key (3 columns)... i have to use one of the column as foreign key in another table(table B).. Now i want to extr开发者_JAVA百科actthe values from the table A by the foriegn key of table B.. How to avoid the duplicates in table B? **


Try by putting a unique constraint.

0

精彩评论

暂无评论...
验证码 换一张
取 消