Professional Documents
Culture Documents
SQL DML
SQL DML
■ INSERT Commend
■ UPDATE Commend
■ DELETE Commend
■ SELECT Commend
INSERT INTO Syntax
■ UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
DELETE Syntax
EXAMPLE
■ SELECT * FROM Customers
WHERE CustomerID=1;
Operators in The WHERE Clause
Operator Description
= Equal
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal
<> Not equal. Note: In some versions of SQL this operator may
be written as !=
AND Syntax
EXAMPLES
■ 1- SELECT * FROM Customers
WHERE Country='Germany' AND (City='Berlin' OR City='München');