Thursday, April 25, 2019

SELECT Command In SQL| DQL Command


SELECT Command



SELECT command is one type of DQL (Data Query Language) command, which used to find information from one or more tables, and return the query as a Result Set.

Definition of Result Set :

When we are using select query its retrieve data or values in a result table, called the result-set.
Syntax :

1) SELECT column_name1, column_name2 FROM table_name ;

2) SELECT * FROM table_name ;

Select command has two types of parameters :

1) column_name - This parameter specifies the name of column, which data we want to retrieve.
2) table_name - This parameter specifies the name of table.

Example:

// Select Customer City and Address from Customer01 table

SELECT C_City, C_Address FROM Customer01;

// Select all data from table

SELECT * FROM Customer01 ;



* * * * * * * * * * * * * * * * * 

In Easy Language :

Select command used to retrieve data or values from database .

Previous Post
Next Post

post written by:

1 comment: