To write a query with DML commands .

To write a query with DML commands. To write a query with DML commands:


DML (Data Manipulation Language):
The SQL commands that deal with the manipulation of data present in the database belong to DML or Data Manipulation Language, and this includes most of the SQL statements. It is the component of the SQL statement that controls access to data and to the database. Basically, DCL statements are grouped with DML statements.
List of DML commands:
  1. INSERT: It is used to insert data into a table.
  2. QUERY*
    INSERT INTO BOOKS VALUES (1012, 'C+', 'ABC', 'Xyz', 800, 3, 2);
  3. UPDATE: It is used to update existing data within a table.
  4. QUERY*
    UPDATE Customers SET ContactName = 'Alfred Schmidt', City = 'Frankfurt' WHERE CustomerID = 1;
  5. DELETE: It is used to delete records from a database table.
  6. QUERY*
    DELETE FROM Customers WHERE CustomerName = 'Alfreds Futterkiste';

Comments

Popular posts from this blog

SQL IS NOT NULL.

Database Management System

SQL BETWEEN Operator Example.