Today wrote a few hours of SQL statements, at the beginning I did not train of thought, the idea began to write.First I query the storage table in the 3-level units under the various outlets of the storage information, find this information, I went
1) Create a sequence:Create sequence Seq_test--field name MinValue 1--Minimum value MaxValue XXXXX--set maximum start with 1--count from 1 increment by 1 --Add 1 nocycle at a time--always accumulating, not circulating nocache; --Do not
From Wolfaone, Oracle has no integer type, what is the maximum value of this type?Integer is a subtype of number type:Number TypeThe number datatype to store fixed or floating point numbersof virtually any size. You can specify precision, which are
1. Modify the table field type /* modify the name of the name name_tmp*/ALTER TABLE ca_cadocument rename column cd_taskids to cd_taskids_t; */ Add a field with the same name as the original field name name*/ALTER TABLE ca_cadocument add Cd_taskids
View database lock Select object_name, machine, S.sid, s.serial# from Gv$locked_object L, dba_objects o, gv$session s WHERE l.object _id = o.object_id and l.session_id = S.sid; Close a sessionalter system kill session ' 305, 48290 '; Take a look
1. Overview of the ViewA view is actually a query SQL statement that displays related data in one or more tables or other views. The view uses the results of a query as a table, so the view can be thought of as a stored query or a virtual table.
Here are Some of the concepts that I learned from my own understanding of Oracle, which may be the wrong cognitionA database can be built using the graphical interface at 1.windowsSee Baidu: Http://jingyan.baidu.com/article/90bc8fc80c01f2f653640c1f.
First need to have local Sqlplus command, if not need to download the official website can also click I download (decompression readme.txt has installation configuration instructions):in the Oracle official website Download instant Client for OS X.
MySQL stored procedures(1). FormatFormat created by the MySQL stored procedure: CREATE PROCEDURE procedure name ([process parameters [,...]])[Features ...] Process BodyCase Analysis:ParametersThe parameters of the MySQL stored procedure are used in
The role of the parameter file:They are loaded at the start of the database instance, which determines the physical structure of the database, memory, database constraints and the system of a large number of default values, the various physical
Select COUNT (*) from (SELECT COUNT (*) from table name GROUP by multiple data volume) table name;Give me a chestnut:For example, I have a field of data type, there are many kinds of data types. And each data type has data for nearly some years. Is
--To create a test table:CREATE TABLEMM (ID Number, NAMEVARCHAR2( -)); CREATE TABLEMN (ID Number, NAMEVARCHAR2( -)); --Inserting DataINSERT intoMmVALUES(1,'A'); INSERT intoMNVALUES(1,'B');--Test MergeMERGE intoMN A USING MM B on(a.id=b.id)
--substr (string, intercept start position, intercept length) = return the intercepted wordSelectSubstr'miaoying',0,1) fromDual--The returned result is: MSelectSubstr'miaoying',1,1) fromDual--The returned result is: m--description 0 and 1 both
Common basic types of 1.oracle databasesCHAR (Ten)--store a fixed-length stringVARCHAR2 (Ten)--storing variable-length stringsDateinteger-to-store integersNumber (p,s)-->p the maximum number of digits that can be saved to the database, including the
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service