Primary Key:
It will not allow "Null values" and "Duplicate values"
Foreign Key:
It will allow "Null values" and "Duplicte values" and it refers to a primary key in anoter table - See more at: http://talk.thewebhostingdir.com/microsoft-sql-server/22715-difference-between-primary-key-foreign-key.html#sthash.pt6CMqyW.dpuf
It will not allow "Null values" and "Duplicate values"
Foreign Key:
It will allow "Null values" and "Duplicte values" and it refers to a primary key in anoter table - See more at: http://talk.thewebhostingdir.com/microsoft-sql-server/22715-difference-between-primary-key-foreign-key.html#sthash.pt6CMqyW.dpuf
No comments:
Post a Comment