Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the sql languages?

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you what the sql language has. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

Sql language includes: data query language, data manipulation language, transaction language, data control language, data definition language and pointer control language.

1. Data query language (DQL)

Its statement, also known as a "data retrieval statement", is used to obtain data from a table and determine how the data is given in the application. The reserved word SELECT is the most frequently used verb in DQL (and all SQL). Other commonly used reserved words in DQL are WHERE,ORDER BY, GROUP BY and HAVING. These DQL reserved words are often used with other types of SQL statements.

2. Data manipulation language (DML)

Its statements include INSERT,UPDATE and DELETE. Used to add, modify, and delete records in the table, respectively. Also known as Action query language.

3. Transaction processing language (TPL)

Its statement ensures that all rows of the table affected by the DML statement are updated in a timely manner. TPL statements include BEGIN TRANSACTION,COMMIT and ROLLBACK.

Data Control language (DCL)

Its statements are licensed through GRANT or REVOKE to determine the access of individual users and user groups to database objects. Some RDBMS can use GRANT or REVOKE to control access to individual columns of the form.

5. Data definition language (DDL)

Its sentences include verbs CREATE and DROP, ALTER. Create a new table or delete a table (CREATE TABLE or DROP TABLE or ALTER TABLE) in the database; manipulate the structure of the table to add an index to the table.

6. Pointer Control language (CCL)

Its statements, such as DECLARE CURSOR, FETCH INTO, and UPDATE WHERE CURRENT, are used for single-line (record) operations on one or more forms.

Thank you for reading! What about the sql language to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report