There're four catalogs in standard SQL language:
- DDL-----Data Defination Language
- DML-----Data Manipulation Language
- DCL------Data Control Language
- TCL------Transaction Language
1> The DDL includes
CREATE TABLE - creates new database table
ALTER TABLE - alters or changes the database table
DROP TABLE - deletes the database table
CREATE INDEX - creates an index or used as a search key
DROP INDEX - deletes an index
2> The DML includes
SELECT - extracts data from the database
UPDATE - updates data in the database
DELETE - deletes data from the database
INSERT INTO - inserts new data into the database
3> The DCL includes
GRANT – gives access privileges to users for database
REVOKE – withdraws access privileges to users for database
4> The TCL includes
COMMIT – saves the work done
ROLLBACK - restore the database to original since the last COMMIT
Regarding how to use SQL, pls refer to this link. http://sql.1keydata.com/cn/
0 comments:
Post a Comment