| 
          The most commonly used SQL command is SELECT statement. The SQL SELECT statement is used to query or retrieve data from a table in the database. A query may retrieve information from specified columns or from all of the columns in the table. To create a simple SQL SELECT Statement, you must specify the column(s) name and the table name. The whole query is called SQL SELECT Statement. Syntax of SQL SELECT Statement:SELECT column_list FROM table-name [WHERE Clause][GROUP BY clause][HAVING clause][ORDER BY clause];
 An SQL SELECT ExampleTable Name : custmast
 | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| We use the following SELECT statement: | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Select custcode,custname from custmast Output: 
 Select * from custmast 
 | 
Tuesday, 29 November 2011
SQL Select
Subscribe to:
Post Comments (Atom)
Followers
Powered by Blogger.



 
0 comments:
Post a Comment