Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

primary keytable

Former Member
0 Likes
509

hi experts,

what is primarykey table and forignkeytable?

thanks in advance

radhakrishna.

4 REPLIES 4
Read only

Former Member
0 Likes
481

Hi,

Primary key : The field which is Unique and not null is called the Primary Key field

Foreign Key : To establish the relations between 2 tables the same key kield in another table is the Foreign key.

Foreign key can or can not be Unique and not-null.

Regards,

Anji

Read only

p291102
Active Contributor
0 Likes
481

Hi,

I guess that the FOREIGN KEY constraint assures us that the referenced column is

a PRIMARY KEY in an another table.

You can reference any colums with the REFERENCE constraint on column.

Thanks,

Shankar

Read only

Former Member
0 Likes
481

HI,

Primary key : The field which is Unique and not null is called the Primary Key field

Foreign Key : To establish the relations between 2 tables the same key kield in another table is the Foreign key.

Foreign key can or can not be Unique and not-null.

SRI

Read only

Former Member
0 Likes
481

Hi Radhakrishanan,

<b>Primary Key:</b>

A primary key is usually called as an unique key.A primary key is defined for each database table. A user-defined primary key can consist of one or more columns.The primary key must have a unique value for each table row. The primary key is either defined by the database user, or generated internally.

<b>

Foreign key</b>

If the values in a column (or a combination of columns) of a table always match the values of the primary key column of another table, then this column (or combination of columns) is called a foreign key.

Please refer to the thread

Hope your query is resolved.

Thanks and regards,

Siva