Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Primary Key

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 373
    Comment on it

    Primary Key

    A primary key in a table is a unique key that is the element in this column are unique and can not be null.

    It is used to mantain the integrity.

    It uniquely identify the row in the table.

    It is a constraint on the table.

    It can not have more than 16 columns.

    It can also be a group of columns.

    1. CREATE TABLE CUSTOMERS(
    2. ID INT NOT NULL,
    3. NAME VARCHAR (20) NOT NULL,
    4. AGE INT NOT NULL,
    5. ADDRESS CHAR (25) ,
    6. SALARY DECIMAL (18, 2),
    7. PRIMARY KEY (ID)
    8. );

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: