Share on Google+Share on Google+

The DELETE Statement

In this section, you will learn use of the delete statement.

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. 







DELETE FROM table_name
WHERE column_name = some_value

Let's consider a table :


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'


LName FName Address
ram Raj delhi-5

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


Posted on: September 15, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: The DELETE Statement   View All Comments

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
February 18, 2013
very good

This site so help for my project . wonderful