User name is: C # #NEWO=============================================================================/* divided into four steps *//* Step 1th: Create a temporary tablespace */Create temporary tablespace C # #NEWO_TEMPTempfile '
Use the%type keyword to declare a data type that is the same as the specified column name, which is usually followed by the specified column name.2 Benefits of using%type:1. Users do not have to look at the data types of individual columns in the
Refer to the Baidu Oracle regular expression--The beginning of the numberSELECT * FROM TMP where regexp_like (str, ' ^[0-9] ');--The numbers are in place from the beginningSELECT * FROM TMP where regexp_like (str, ' ^[0-9]+$ ')--The field is a
OracleBoot auto StartThe database and the Tomcat program need to be started automatically when the server shuts down the rebootOracle Database self-bootingThe Oracle database comes with a self-launching script that can be modified to useVim $ORACLE _
A few days ago to download the Oracle Linux 7.2 version, this practice is done on a 1GB memory, 1CPU virtual machine.Installation interface, red a little glare, select the first item650) this.width=650; "src="
Yesterday's requirements were used in a few previous usages.Key words: To_char (' xxxx '), to_number (' xxx ')The 1.to_char converts 10 binary numbers in Oracle to 16 binary numbers.Pre-recorded 10 binary numberThe Lac_16 field is treated as follows,
Extended table Space Size statement1. Add a data file to the tablespace:Dba_data_filesALTER tablespace UsersADD datafile '/u02/oracle/rbdb1/users03.dbf ' SIZE 10MAutoextend onNEXT 512KMAXSIZE 250M;2. Adjust the size of the data file:ALTER DATABASE
Want to see how many days the system is working? How long did the boot not restart?Windows systemC:\>systeminfo |find "System boot Time"System start-up time: 265 days, 4 hours, 26 minutes, 32 secondsLinux[Email protected] ~]$ uptime17:15:07 up 682
CREATE OR REPLACE ProcedureSoa_getpager (p_pagesizeInt,--number of records per pageP_pagenoInt,--Current page number, starting from 1P_sqlcolsVarchar2,--Select ColumnsP_sqlfromVarchar2,--table name or join queryP_sqlwhereVarchar2,--query
A function in the database contains four parts: declaration, return value, function body, and exception handling.
--Functions with no parameters
Create or Replace function Get_user return VARCHAR2 is
V_user VARCHAR2 (50);
Begin
Select
Create or replace PROCEDURE CLEAR asTname varchar (200);BEGINtname:= ' immediate trace name Flush_cache ';------->> in this sentence, the function of single quotation marks is equivalent to an escape character, and one of the single quotes is
Example Download:Http://yunpan.cn/cLY4v5hdQeMY6 (Extract code: AE65)Grammar:Select ... from where //filterstart with //recursive starting pointConnect by ; Connection QualificationAttention:1,Prior placed on the child node side, it means that the
SQL Like fuzzy query: small knowledge; sqllike fuzzy query
Fuzzy query:
Where mc like 'value': The returned value is equivalent to where mc = 'value'
Where mc like '% value': All data whose matching name is' * value' (ending with "value"), *
Oracle learning notes thirteen triggers, oracle learning notesIntroduction A trigger is a stored procedure that is automatically executed when a specific event occurs. A specific event can be an updated DML statement and DDL statement, and the
Oracle learning notes 2 first knowledge Oracle (2), oracle learning notes first KnowledgeEvery instance of Oracle 9i in Windows is started as a service in Windows. The service is an executable process registered in the Windows registry, which is
Paging query of mainstream Databases1. background summary as a project needs to display a large amount of data on the page, all the data is first queried during database query and then displayed, at this time, paging query operations are essential.
Oracle recursive query and Oracle recursive query1. Create data
1.1 create a table and insert data
Create table district (id number (10) not null, PARENT_ID NUMBER (10), NAME VARCHAR2 (255 BYTE) not null ); alter table district add (CONSTRAINT
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