Databases| SQL| MySQL| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
Where Clause in SQL 
 

The Where clause in SQL query is used with the SELECT keyword.' Where' clause search the data with a particular condition.

 

Where Clause in SQL

                         

The Where clause in SQL query is used  with the SELECT keyword.' Where' clause search the data with a particular condition. In case the data matches with condition, return you the specific value of particular data value.

Syntax

 

 

 

 

 

 

SELECT column FROM table WHERE column operator value

The Select is used to retrieve the record from a table.  

column : This specify the name of the column, which you want to retrieve from table.

From : The From Keyword specify the name of the table from where data is retrieved.

table :This specify the name of the table.

Where column : The clause where search the data with a particular condition. If data matches with the condition ,return you the specific value of data.

The List of Operator can be used as

Operator Description
= Equal
BETWEEN Between an inclusive range
LIKE

Search for a pattern

IN If you know the exact value you want to return for at least one of the columns

Understand with Example

The Tutorial illustrate an example from where clause in SQL. In this Tutorial we use a select query to retrieve the record from  table 'country'.

select * from country;

The select query return you the records or rows from table country. In case the data matches with the specified condition, return you the specific value of record.

Output of the above query is

The select query used with where clause, which search the data with a particular condition.

select * from country where countryname='India';

Output of the above query is

 

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
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
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.