This will be used for the retrieval of the data from the database.
In order to see the data present in the database, we will use DRL statement. We
have only one DRLstatement.
- SELECT is the only one DRL statement in SQL.
SELECT:
Select statement is used to see the data present in the
database. Syntax for writing this statement is,
- SELECT columns_list FROM table_name;
- SELECT * FROM table_name;
Ex:
To check data present in all the
columns of Emp table,
- SELECT * FROM Emp;
Ex:
- SELECT empno,ename FROM Emp;