Note is used to explain the program code, it can enhance the readability of the program is easy to understand the program.Single-line Comment:With "--", followed by the contents of the commentDeclareNum_sal Number;--declaring a variable of a numeric
This is an Oracle's column change function: Listagg ()Look at the sample code first:SQL code
With temp as (
Select ' China ' nation,' Guangzhou ' to dual Union All
Select ' China ' nation,' Shanghai ' to dual Union All /c9>
1 View FirstSql> Show Parameter JobNAME TYPE VALUE------------------------------------ ----------- ------------------------------Job_queue_processes Integer 10If the value is 0 needs to be modified (if 0 does not run the job, this value is the
Centos6.4Find instant Client from Oracle website:Http://www.oracle.com/technetwork/cn/topics/linuxsoft-100466-zhs.htmlDownload Basic and SqlplusWhat I'm downloading here isInstantclient-basic-linux32-11.2.00.1.zipInstantclient-sqlplus-linux32-11.2.00
--accumulation of SQL for workThere are other types of Oracle. Storage process. Input from the function, and so on.below to see the creation.How to useCREATE OR REPLACE type name as OBJECT(Field 1 type,Field 2 Type,Field 3 Type)Like whatCREATE OR
Import java.sql.*;
The packages used in JDBC are almost always in import?java.sql.*;
Import Oracel or MySQL packages and load drivers in your project:
The classpath of the project and the classpath of the system are put in
when we Order sort of not being able to implement what we want, try it. Nlssort this function.He does not just sort by last name, but also by name:
Nls_param is used to specify a language feature in the format nls_sort = Sort , the Nls_sort
Because the Data Warehouse ETL process, the execution time of a mapping more than one hours, Select event,count(*) fromv$session_wait Groupbyorder Bycount (*) descFind that log switching takes a lot of time to try to increase the size of the redo
Before using Oracle, you have to install his bloated client, although the Internet also provides direct-to-Oracle driver, but also to charge, recently Oracle finally enlightened, provide the official full-managed drive.This is the Oracle all-managed
Oracle is designed to be a very portable database software that can be run more stably, whether in Linux,unix or Windows download, and is supported on mainframes. This blog is only used to document the initial understanding of Oracle architecture
--Take the date of the first day of the one months before the current date select Last_day (Add_months (Sysdate,-2)) + 1 from dual;--take the date of the last day one months before the current date select Last_day (add _months (Sysdate,-1)) from
Implement the generate_series function of POSTGRESQL in OraclePostgreSQL has a sequence generation function that allows you to easily create data. Here, I use ORACLE to implement the generate_series function of PGSQL.POSTGRESQL.
T_girl = # select *
Stored Procedure-Comparison Between MySQL and Oracle1. introduction to Stored procedures our commonly used database language SQL statements must be compiled before execution, while Stored procedures (Stored Procedure) is a set of SQL statements for
ORACLE Installation of Automatic Installation Software Package for the first time1. Configure the yum repository definition package.txt package list file in advance for the required software package for automatic installation: Take the official
ORACLE lag () and lead () functions, oraclelag
I. Introduction
The lag and lead functions are two offset-related analysis functions. These two functions can be used to retrieve the data of the first N rows of the same field in a query (lag) and the
How to monitor ORACLE index usageDuring database management and maintenance, we always encounter a problem: will the indexes we create be used by some SQL statements? Change the general expression: is the index I created an unused index (unused
Oracle Study Notes 14 built-in package, oracle Study Notes
Extended database functions
Provide SQL function access for PL/SQL
User SYS owns all packages
Is a public Synonym
Accessible to any user
Some built-in packages
Oracle index reconstruction, oracle Index
I. Preface
Oracle recommends that you re-create an index if the index depth exceeds 4 and the number of deleted index entries occupies at least 20% of the total number of existing index entries. Some people
Introduction to Oracle system processes and main functionsIntroduction to major Oracle Processes
Data Writing Process (dbwr): responsible for writing changed data from the database buffer cache to the data fileLog write process (lgwr): writes
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