Home Quartz The DELETE Statement, SQL Tutorial



The DELETE Statement, SQL Tutorial
Posted on: April 18, 2011 at 12:00 AM
This page discusses - The DELETE Statement, SQL Tutorial

The DELETE Statement

     

The DELETE statement is used to delete rows from a table. database will update that is why deletion and insertion of data will be done. 

Syntax

 

 

 

 

 

DELETE FROM table_name
WHERE column_name = some_value

Let's consider a table :

Person:

LName FName Address
ram Raj delhi-5
sonu Shiv delhi-5

To Delete a Row
  : 

Suppose the row with Lname="sonu" is needed to get deleted
.
DELETE FROM Person WHERE LName = 'sonu'

Result

LName FName Address
ram Raj delhi-5


To
Delete All the Rows
: This means that the table structure, attributes, and indexes will be drop.
DELETE FROM table_name

Related Tags for The DELETE Statement, SQL Tutorial:


More Tutorials from this section

Ask Questions?    Discuss: The DELETE Statement, SQL Tutorial  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.