Four types of SQL language and Oracle operators

Source: Internet
Author: User

There are four types of SQL statements:
Data definition language (DDL)
Data manipulation Language (DML)
Data Control Language (DCL)
Transaction Control Language (TCL)

Data Definition Language (DDL)
DDL gives us the ability to create or delete tables. You can also define indexes (keys), specify links between tables, and impose constraints between tables.


Create database-Creating new databases
ALTER DATABASE-Modify databases
CREATE table-Creates a new table
ALTER TABLE-Change (change) database table
drop table-Delete tables
Create index-Creating indexes (search key)
Drop INDEX-Delete indexes

Data manipulation Language (DML)
for users to implement the data append, delete, update, query and other operations.


SELECT-Get data from a database table
Update-updating data in a database table
Delete-Deletes data from the database table
INSERT into-inserts data into a database table

Data Control Language (DCL)


Grant-Authorization
REVOKE-Revoke Authorization
Deny-Deny authorization

Transaction Control Language (TCL)

SavePoint-Set Save point
ROLLBACK-Rollback
Commit-Commit

Oracle operator

Expressions are similar to Java, can be constants, can be variables, or they can be a field in a table

Arithmetic operators (+-*/)
Comparison operators (> >= < <= = <>/!=)
logical operators (and or not)

Four types of SQL language and Oracle operators

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.