Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi all,

We all know that DML commands are Data manipulation commands in DBMS.
DML commands: used for data manipulations in database tables.

SELECT

DELETE

UPDATE

INSERT



why the SELECT Command is categorised into DML When We know that it is just used to select data from database table and no data manipulations involved..
ANY REASON......??
Posted

Most developers think of SQL in terms of the DML-Data Manipulation Language: the Delete, Insert, Update and particularly the Select statements. And truly Select provides a lot of retrieval power with joins to other tables, grouping, nested subselects and other retrieval goodies. Again, it is very instructive to see how closely the major vendors have adhered to the SQL'99 standard; but there are some variations. Just enough to cause a nuisance for interoperability purposes.

Thanks.
 
Share this answer
 
Hi Ramakrishna Alla,

You have made very good classification of DML commands depending on thier action on database table.

Thank You for Sharing your answer...
 
Share this answer
 
Actually Select is not a part of DML but CRUD(C-Create/Insert,R-Read/Select,U-Update,D-Delete)

Select Command is belongs DRL(Data Retreival Language)-(It doesn't affect on state of DB (here state indicates number of rows affected))-so We also call Select as Non action query.
DML - Insert ,Update, Delete (these three are change the state of database)We also call them as action queries.

By
Ramakrishna Alla
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900