-- Transaction controlCommit -- end the current transactionRollback -- abort the current transactionSET transaction -- define the data access features of the current transaction-- Program SQLDeclare -- set the cursor for the queryExplain -- describe the data access plan for queryOpen -- open a cursor for retrieving query resultsFetch -- retrieve a row of query resultsClose -- close the cursorPrepare -- prepare SQL statements for dynamic executionExecu
Permissions-- Transaction controlCommit -- end the current transactionRollback -- abort the current transactionSET transaction -- define the data access features of the current transaction-- Programmatic SQLDeclare -- set the cursor for the queryExplain -- describe the data access plan for queryOpen -- open a cursor for retrieving query resultsFetch -- retrieve a row of query resultsClose -- close the cursorPrepare -- prepare SQL statements for dynam
access features of the current TRANSACTION
-- Programmatic SQL
DECLARE -- set the cursor for the query
Explain -- describe the data access plan for query
OPEN -- OPEN a cursor for retrieving query results
FETCH -- retrieve a row of query results
CLOSE -- CLOSE the cursor
PREPARE -- prepare SQL statements for dynamic execution
EXECUTE -- dynamically execute SQL s
The Oracle tutorials being looked at are: Oraclepl/sql single-line functions and group functions. A 1 function is a program that has 0 or more parameters and has a return value. In SQL, Oracle builds a series of functions that can be called SQL or PL/SQL statements, and functions fall into two main categories:
2
3 sing
To create a database:1 CREATE DATABASETest--The name of the database to be created2 on PRIMARY3 (4 --specific description of the database file5NAME='Test_data',--logical name of the master data file6FILENAME='E:\project\Test_data.mdf',--physical name of the master data file7SIZE=5MB,--Initial size of master data file8MAXSIZE=100MB,--maximum growth of the master data file9FileGrowth= the% --growth rate of master data filesTen ) One LOG on A ( - --the specific
The ORACLE tutorial is: OraclePL/SQL single-row functions and group functions. A 1 function is a program with zero or multiple parameters and a return value. Oracle has a series of built-in functions in SQL, which can be called SQL or PL/SQL statements. functions are mainly divided into two categories:
2
3 single row F
-Deny User Access
Revoke -- revoke User Access Permissions
-- Transaction control
Commit -- end the current transaction
Rollback -- abort the current transaction
SET transaction -- define the data access features of the current transaction
--ProgramSQL
Declare -- set the cursor for the query
Explain -- describe the data access plan for query
Open -- open a cursor for retrieving query results
Fetch -- retrieve a row of query results
Close -- close the cursor
Prepare -- pre
control
COMMIT--End current transaction
ROLLBACK--Abort current transaction
SET TRANSACTION--Defining the current transaction data access characteristics
--Programmed SQL
DECLARE--Set cursors for queries
Explan--Describes a data access plan for a query
Open--Retrieving query results opens a cursor
FETCH--Retrieves a row of query results
Close--Closing cursors
PREPARE-Preparing SQL statements for dynamic ex
for the SQL Server system, the user-defined data type cannot be used here.2) length is used to specify how long the data is, and the default value is 30.3) converts a char or varchar type to an integer type such as int or samllint, and the result must be a numeric value with a plus or minus sign.4) The text type is converted to char or varchar type up to 8,000 characters, that is, the char or varchar data type is the maximum length.5) The data stored
Common SQL Syntax Functions
Code:Functions of Transact SQL statements-- Data OperationsSELECT -- retrieve data rows and columns from database tablesINSERT -- add new data rows to the database tableDELETE -- DELETE data rows from a database tableUPDATE -- UPDATE data in the database table-- Data DefinitionCreate table -- CREATE a database TABLEDrop table -- delete a TABLE from a databaseAlter table -- modify
Access Permissions
-- Transaction control
Commit -- end the current transaction
Rollback -- abort the current transaction
SET transaction -- define the data access features of the current transaction
-- Programmatic SQL
Declare -- set the cursor for the query
Explain -- describe the data access plan for query
Open -- open a cursor for retrieving query results
Fetch -- retrieve a row of query results
Close -- close the cursor
Prepare -- prepare
-- Transaction controlCommit -- end the current transactionRollback -- abort the current transactionSET transaction -- define the data access features of the current transaction-- Program SQLDeclare -- set the cursor for the queryExplain -- describe the data access plan for queryOpen -- open a cursor for retrieving query resultsFetch -- retrieve a row of query resultsClose -- close the cursorPrepare -- prepare SQL statements for dynamic executionExecu
Transact_ SQL small manual
********************
-- Sentence skill
-- Data Operations
Select -- retrieve data rows and columns from database tables
Insert -- add new data rows to the database table
Delete -- delete data rows from a database table
Update -- update data in the database table
-- Data Definition
Create Table -- create a database table
Drop table -- delete a table from a database
Alter table -- modify the database tabl
from a databaseCreate procedure -- CREATE a stored PROCEDUREDrop procedure -- delete a stored PROCEDURE from a databaseCreate trigger -- CREATE a TRIGGERDrop trigger -- delete a TRIGGER from a databaseCreate schema -- Add a new SCHEMA to the databaseDrop schema -- delete a SCHEMA from the databaseCreate domain -- CREATE a Data Value DOMAINAlter domain -- change DOMAIN definitionDrop domain -- delete a DOMAIN from the database-- Data ControlGRANT -- GRANT the user access permissionDENY-DENY User
= SQL statement collection =-
-- Sentence -- skill --
-- Data OperationsSelect -- retrieve data rows and columns from database tablesInsert -- add new data rows to the database tableDelete -- delete data rows from a database tableUpdate -- update data in the database table
-- Data DefinitionCreate Table -- create a database tableDrop table -- delete a table from a databaseAlter table -- modify the database table structureCreate View -- create a viewD
PL/SQL single-row functions and group functions
A function is a program with zero or multiple parameters and a return value. Oracle has a series of built-in functions in SQL, which can be called SQL or PL/SQL statements. functions are mainly divided into two categories:Single Row Function
Group functions
This article w
SQL Statement Collection --statement function --data Operation SELECT--Retrieve data rows and columns from a database table INSERT--Add new data rows to a database table Delete--delete data rows from a database table UPDATE-- Update data in a database table --Data definition CREATE table--Creates a database table drop table--Deletes a table from the Database ALTER table--Modify the database table structure CREATE VIEW-- Create a View Drop vie
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.