Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Primary key table in database - Database
Home
>>
Category
>>
Programming Language (MCQ) questions
>>
Database
Q. How many primary key can a table in database have?
- Published on 28 Aug 15
a.
Only one
b.
At least one
c.
More than one
d.
Any number of
ANSWER: Only one
Related Content
Networking (
207
)
Database (
97
)
C programming (
58
)
Software Engineering (
28
)
SQL (
5
)
HTML (
74
)
Web Technologies (
11
)
Data Structure (
140
)
Operating System (
96
)
Java (
25
)
Oracle (
5
)
C++ (
50
)
Algorithms (
7
)
PL/SQL (
13
)
JavaScript (
7
)
XML (
0
)
CSS (
1
)
Discussion
Nirja Shah
-Posted on 30 Oct 15
Primary key
- It is a field in a table which uniquely identifies each row/record in a database table.
- They must contain unique values.
- This column which is a primary key cannot have NULL values.
- A table can have only one primary key, which may consist of single or multiple fields.
- When multiple fields are used as a primary key, they are called a composite key.
- If a table has a primary key defined on any field(s), then you can not have two records having the same value of that field(s).
➨
Post your comment / Share knowledge
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲