language classification is roughly as follows:1) Data Definition Language (DDL): Create, Drop, Grant, Revoke ,...2) Data Control Language (DML): Update, Insert, Delete ,...3) Data Control Language (DCL): Commit, Rollback, Savapoint ,...4) Others: Alter System, Connect, Allocate ,...For more information about the specific syntax structure, see SQL language.
Ii. Process and Function
The procedures and functi
Oracle SQL * plus is a client tool that interacts with oracle. In SQL * plus, you can run the SQL * plus command and the SQL * plus statement.The DML, DDL, and DCL statements we usually call are SQL * plus statements. After they a
Tags: here update type DDL DCL Multi-column management Tcl otherObjectiveThe front of this series is all about querying select. But the SQL is very extensive, according to the different processing of data can be divided into:
DML: Full data manipulation Language, as can be seen from the name, DML is the maintenance of the data management language, mainly to deal with the information itself;
DDL
1. query all tables in SQL:Select TABLE_NAME FROM database name. INFORMATION_SCHEMA.TABLES Where TABLE_TYPE = 'base table' after execution, you can see the names of all tables created by yourself in the database.2. query all tables and columns in SQL:Select dbo. sysobjects. name as Table_name, dbo. syscolumns. name AS Column_name FROM dbo. syscolumns inner join dbo. sysobjects ON dbo. syscolumns. id = dbo. sysobjects. id Where (dbo. sysobjects. xtype = 'U') AND (NOT (dbo. sysobjects. name LIKE '
Topic: Consumers from Madrid with fewer than 3 orders
Build table:
Copy Code code as follows:
SET NOCOUNT ON--When SET NOCOUNT is on, the count is not returned (representing the number of rows affected by Transact-SQL statements). Returns the count when SET NOCOUNT is off
Use SY
Go
If OBJECT_ID (' dbo. Orders ') is not null
DROP TABLE dbo. Orders
Go
If OBJECT_ID (' dbo. Customers ') is not null
DROP TABLE dbo. Customers
Go
CREATE
Classic SQL statements
The following statements are MSSQL statements and cannot be used in access.SQL classification:DDL-Data Definition Language (create, alter, drop, declare)DML-data manipulation language (select, delete, update, insert)DCL-Data Control Language (Grant, revoke, commit, rollback)First, we will briefly introduce the basic statements:1. Description: Create a databaseCreate Database database-
Comparison of functions between Visual Basic for Applications and SQL Server Transact-SQL (ADP)Note that the information in this topic applies only to the Microsoft Access Project (. ADP ).
The following table compares common functions in Microsoft Visual Basic for Applications (VBA) and Microsoft SQL Server Transact-SQL
Label:The optimization of SQL statements is to convert poorly performing SQL statements into the same performance SQL statements with the same purpose.AI automatic SQL optimization uses AI technology to automatically rewrite SQL statements to find the best-performing equival
The following statements are MSSQL statements and cannot be used in access.SQL classification:DDL-Data Definition Language (create, alter, drop, declare)DML-data manipulation language (select, delete, update, insert)DCL-Data Control Language (Grant, revoke, commit, rollback)First, we will briefly introduce the basic statements:1. Description: Create a databaseCreate Database database-name2. Description: delete a database.Drop database dbname3. Descrip
1. view the database version
Select @ version
2. view the operating system parameters of the machine where the database is locatedExec master .. xp_msver
3. view database startup parametersSp_configure
4. view the database startup timeSelect convert (varchar (30), login_time, 120) from Master .. sysprocesses where spid = 1
View database server name and Instance namePrint 'server name ...... + convert (varchar (30), @ servername)Print 'instance ......: '+ convert (varchar (30), @ servicename)5.
1. View the version of the database
SELECT @ @version
2. View the machine operating system parameters of the database
EXEC master.. xp_msver
3. View Database Startup Parameters
sp_configure
4. View Database Startup time
Select CONVERT (varchar, login_time,120) from master. sysprocesses where spid=1
To view the database server name and instance name
print ' Server Name ... ...: ' + CONVERT (varchar (), @ @SERVERNAME), ".
print ' Instance ....: ' + CONVERT (varchar), @ @SERVICENAME. @)., d..
5
Pro * C has three common dynamic SQL technologies:
It is used to process dynamic SQL statements that do not contain host variables and cannot be used for select statements.
It is used to process the dynamic SQL statements with the number and type of input host variables. It cannot be used in select statements.
This method is used to process the dynamic
commit by default, and Oracle needs to manually execute the TPL language such as commit.Iv. Data Control Language (DCL)The DCL full name (Data Control Language) whose statements are licensed through grant or revoke. Determine access to database objects for individual users and groups of users. Some RDBMS can use grant or revoke to control access to individual columns of a table.V. Data definition language
Exquisite SQL statement set (collection) http://www.cnblogs.com/beniao/archive/2008/05/14/1197137.html reprinted
Collection of exquisite SQL statements)
The following statements are Mssql statements and cannot be used in access. SQL classification:DDL-Data Definition Language (Create, Alter, Drop, DECLARE)DML-data manipulation language (Select, Delete, Update,
Oracle SQL * Plus is a client tool that interacts with Oracle. In SQL * Plus, you can run the SQL * Plus command and the SQL * Plus statement. The DML, DDL, and DCL statements we usually call are SQL * Plus statements. After they
Abstract: In the PL/SQL development process, SQL, PL/SQL can be used to meet most of the requirements. However, in some special cases, standard SQL statements or DML statements in PL/SQL cannot meet your needs. For example, dynamic table creation or an uncertain operation mu
Chapter 1 Basic SQL statements (Basic SQL statements) and Chapter 1 Basic SQL statements
1. query the database system time, which is usually displayed in the default format of the server (depending on the character set of the database );Note: dual is a virtual table in the database and belongs to the Administrator sys user, but all users can access it. It has no
Connect to the SQL server lock mechanism (I)-Overview (lock type and scope)
Ii. Complete lock compatibility matrix (see)
Correct Code Description: see.
III. The following table lists the resources that can be locked by the database engine.
Name
Resources
Abbreviations
Encoding
Specifies the method to describe the resource when a lock is presented.
Description
Data row
RID
RID
9
File No.: Page No.: Slot
Java. SQL. SQLException: ORA-00604: recursive SQL Level 1 error, recursive SQL Level 1 error
The following error is reported in the background:
Caused by: java. SQL. SQLException: ORA-00604: recursive SQL Level 1 error
ORA-01000: exceeds the maximum number of opened cursors
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.