DML (Data Manipulation language):They are select, UPDATE, INSERT, DELETE, just like its name, these 4 commands are the languages used to manipulate the data in the databaseDDL (data definition Language):DDL is more than DML, the main command has create, alter, DROP, etc., DDL is mainly used in the definition or Change tables (table) of the structure, data types, links between tables and constraints such as initialization work, most of them in the creation of tables usingDCL (Data Control Languag
that using SQL to fully implement these functions is very difficultDifficult. As a result, most database companies have done two things to solve this problem:(1) Expand SQL, introduce the procedural structure in SQL, (2) Embed SQL into the high-level language,In order to complete a complete application together.Two. Classification of SQL languagesThe SQL language is divided into four categories: Data Query Language DQL, Data manipulation language DML, data definition language DDL, Data Control
Relational databases have three types of languages: (Data Description Language) DDL ), (Data manipulation language DML ) And (Data Control Language DCL ), And SQL Yes (Set DDL , DML , DCL Standard relational database language. DDL is Data Definition Language statements. Some examples:
Create-to create objects in the database
Alter-alters the structure of the database
Drop-delete objects
Tags: control art date evel permissions poi. com article pictures
DML (Data Manipulation language): They are select, UPDATE, INSERT, DELETE, just like its name, these 4 commands are the languages used to manipulate the data in the database
DDL (data Definition Language): DDL is more than DML, the main command has create, ALTER, drop, etc., DDL is mainly used in the definition or Change tables (table) structure, data types, table links and constraints, such as initializat
Label:The SQL language is divided into four categories: Data Query Language DQL, Data manipulation language DML, data definition language DDL, Data Control Language DCL.1. Data Query Language DQLThe DQL basic structure of the data query language is determined by the SELECT clause, the FROM clause, whereclause consists of a query block:SELECT From WHERE 2. Data manipulation language DMLThere are three main forms of data manipulation language DML:1) Ins
DDL (data definition Language): Database definition language 1, create table table_name () 2, alert table table_name(1). Add columnsAn example of the complete definition of the ALTER table tb_name add column: Alter TABLE S_stu Add (sname varchar2 (), sage number);(2). Delete a columnAlter table tb_name drop column col_name;(3). Modifying column properties (data types and constraints)An example of the complete definition of the ALTER table tb_name modify column: ALTER TABLE S_STU modify sname
You can take a look at this Weibo blog: http://blog.csdn.net/jiben2qingshan/article/details/7832344http://blog.163.com/chenwenlin_89/blog/static/135159174201011295818330/The DDL (data definition Language) is used to manipulate the properties of objects and objects, including the database itself, as well as database objects, such as tables, views, and so on, and the DDL's management and definition of these objects and properties are represented in the Create, Drop and alter on. Special note: The
Before introducing these SQL languages, list the common mysql Data Types and Data Type modifications for query reference.The length of a field of this type is indicated by a number.
Numeric type:
TINYINT 1, SMALLINT 2, MEDIUMINT 3, INT 4, BIGINT 8, DECIMAL, FLOAT 4, DOUBLE 8, BIT
String type
CHAR, VARCHAR, BINARY, VBINARY, TINYBLOB, BLOB, MEDIUMBLOB, LONGBLOG, TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT, EMUM, SET
Datetime type
Date, time, datetime, timestamp
Data restriction modification:
Not
Lazysingleton () {} public static synchronized Lazysingleton getinstance () {if (instance = = nul L) {instance = new Lazysingleton (); } return instance; }}
Pros: Do not perform getinstance pairs will not be instantiated
disadvantage: The response is not fast when loading for the first time. Each call to getinstance The synchronization cost is large . (lots of unnecessary synchronizations)
a commit. There are commonly used lock TABLE, remember to write the lock blog-Portal and other unfamiliar: call-invoke a PL/SQL or Java subroutine EXPLAIN PLAN-Parse data access path3. Dcl-data Control LanguageDatabase Control Language: Authorization, role control, etc. grant-grant user access REVOKE-Revoke authorization permission4. Tcl-transaction Control LanguageTransaction control Language COMMIT-save completed work SavePoint-set the savepoint in
1.DDL(data definition Language) database Definition Language statements is used to define the Database structure or schema.DDL is SQL One of the four functions of the language. DDL does not require a commit. createalter droptruncate commentrename 2. DML (data manipulation Language ) data manipulation language statements is used for managing data within schema objects. Provided by the DBMS for use by a user or programmer to implement operations on data in a database.DML is divided into two
Tags: style blog http color os using AR SP dataThis article mainly records some of the main MongoDB's DCL operations.MongoDB does not require a user name and password by default to log in with Mongodb.exeFirst, open the MONOGODB mode of accessModify the registration statement of the MongoDB service, modify the add--auth parameter, see the installation of MongoDB introduction" $MONGODB _home\bin\mongod.exe " " $MONGODB _home\mongo.cfg " --install --aut
a commit. There are also commonly used lock TABLE, remember to write a locked blog – portal There are other unfamiliar: call– call a PL/SQL or Java subroutineEXPLAIN plan– Parse Data access path 3. Dcl–data Control LanguageDatabase Control Language: Authorization, role control, etc. grant– granting access to users revoke– Revoke authorization rights 4. Tcl–transaction Control LanguageTransaction Control Language commit– saving the work that has been
Label:1.DDL (data definition Language) Database Definition language statements is used to define the databases structure or schema.DDL is one of the four functions of SQL language.A three-level structure for defining a database, including external, conceptual, internal, and inter-image, defining constraints such as data integrity, security controls, and moreDDL does not require a commit.CREATEAlterDROPTRUNCATECOMMENTRENAME 2.DML (data manipulation Language) Manipulation language statements is us
1.DDL(data definition Language) database Definition Language statements is used to define the Database structure or schema.DDL is one of the four functions of SQL language.A three-level structure for defining a database, including external, conceptual, internal, and inter-image, defining constraints such as data integrity, security controls, and moreDDL does not require a commit.CREATEAlterDROPTRUNCATECOMMENTRENAME2.DML(datamanipulation Language) Manipulation Language statements is used for man
I have written an article about DCL before, and recently I have received another question. I wanted to reply directly, but I don't want to read the original article. The sequence analysis is actually very difficult. I will not analyze the sequence directly this time, but start with the basic concepts. I hope you can see it easily.
If you search for the reasons why DCL fails in Java on the Internet, you will
DQL (data Query language) querying languageA query statement consisting primarily of selectBasic syntax: Select field name from table name where query conditionDML (Data manipulation language) manipulation languageMainly used to operate the database data, is our common use of additions and deletions to check. SELECT UPDATE INSERT DELETEDDL (data definition Language) database definition languageIt is primarily used for initializing tasks such as defining or altering the structure of tables, data
initialisers because(Spurious reason X)", But there is no" magic "place to put variable initialisation in cases such as this !) However it is created, the JVM ensures that this static initialisation code is called exactly once, when the class is first referred to and loaded.
Using the class loader is generally my preferred way of dealing with lazy static initialisation. the code's nice and simple, and I don't think you can actually do it any more efficiently. the time that it won't work of cour
1. DDL (Data DefinitionLanguage) database definition language statementsAre used to define the database structure or schema.
DDL is one of the four functions of SQL.Defines the three-level structure of the database, including the external mode, conceptual mode, internal mode and the image between them, and defines constraints such as data integrity and security control.DDL does not require commit.CreateAlterDropTruncateCommentRename2. DML (data manipulation language) data manipulation language s
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.