SQL DATA MANIPULATION LANGUAGE (DML)
The DML component of SQL is the part that is used to query and update the tables (once they are built via DDL commands or other means). By far, the most commonly used DML statement is the SELECT. It combines a range of functionality into one complex command.
Used primarily to retrieve data from the database. Also used to create copies of tables, create views, and to specify rows for updating.
General Format: Generic overview applicable to most commercial SQL implementations - lots of potential combinations. There are several variations available in Oracle.
SELECT {field-list | * | ALL | DISTINCT | expression}
FROM table-list
WHERE expression
GROUP BY group-fields
HAVING group-expression
ORDER BY field-list;
Only the SELECT and the FROM clauses are required. The others are optional.
Komentar 0