Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • To make Unique key as Primary

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 32
    Comment on it

    In SQL we have Unique Key and Primary Key


    Unique key is the key in which no value gets repeated including null once


    Primary key cannot be null and value must be unique


    So for making Unique key a primary key we will make it not null it will act as primary key


    Ex: create table student
           (
       stid int unique key not null,
       stname varchar(50)
           )
    
    SQL

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: