Databases| SQL| MySQL| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
Delete a Records in Database 
 

The Delete Statement is used to delete the records and rows from the table.

 

Delete a Records in Database

                         

The Delete Statement is used to delete the records and rows from the table. The generalized Syntax  used for delete query in database are as :

delete from table name;

The above syntax is used to delete an entire record and rows from a table.

delete  from "name of table" where "columnname" operator "value";

The Syntax is used to delete the records or rows from a table followed by where clause, that include the condition on column.

Understand with Example

The Tutorial illustrates an example to delete Records in Database. In this Tutorial, we create a table country, in which we add a record or rows into table using insert into query.

The select retrieve the record from a table country.

insert into country values('India','Delhi');

insert into country (countryname) values('Norway');

select * from country;

 

The delete query is used to delete the record from table country  followed by where clause, which include the condition upon the column specified in query.

The select query shows you the current column field and its record value from table country.

delete from country where countryname='Norway';

select * from country;

 

Download Source

                         

» View all related tutorials
Related Tags: sql c beginner ant io struct unique tutorial int ria for to learn ear e in sta nt tr wan

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.