Data Manipulation language DML (add, modify, delete)
1. Add data INSERT INTO
Insert into Table name (field list) VALUES (value list), the value list to match the field list in order.
Insert into table name values (value list) for all field data insertions, and the list of values to match the field list in order.
2. Modify the Update
Update table name set field name 1= value 1, field name 2= value 2 ... where condition.
If you do not add a where condition is a full table update.
3. Remove Delete
Select Delete: delete [from] table name where condition, not write from can also be executed.
Full table Delete: delete [from] table name, can be restored but inefficient.
TRUNCATE table name, the essence is to delete the table, and then build the table, but can not be restored.
Operator
1. Arithmetic operators
+ - * /
2. Comparison operators
> Greater than
>= greater than or equal to
< less than
<= less than or equal to
= equals
! = is not equal to <> is not equal to
3 logical operators
And and
OR OR
Not non (used in conjunction with other keywords)
|| String link (Oracle-specific)
Data Query Language DQL
Get the data that meets the criteria from the table select
Select*from the name of the table, querying all the data in the table. (Select and from must appear in pairs)
* denotes all fields and can be replaced by the name of the field you want to query.
Data manipulation language DML and operators