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

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 618
    Comment on it

    DELETE Statement:

    It is used to delete existing records from a table. It can delete all records from a table if where condition is not given and if where condition is given than it will delete selected records which will meet the condition.

    Syntax for deleting particular rows as per the condition:

    DELETE FROM tablename WHERE (condition);
    

    Syntax for deleting all records:

    DELETE FROM tablename;
    

    Example:

    DELETE FROM Employee;
    

    The above query will delete all records from Employee table.

    DELETE FROM Employee WHERE EmpID =106;
    

    The above query will delete those records from Employee table whose EmpId is 106 .

 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: