CREATE OR REPLACE PROCEDURE PROC6338196642095312503719 (Enter the news subject VARCHAR2, enter the news content Varchar2, enter the publication time Varchar2, enter the current page number, Enter the number of rows per page, output the current page
Flashback Data Archive (Flashback log archive) is actually understood as a long time to save undo data, for some important tables can customize its history to save the time, its behavior and undo table space is very similar to the use of the time is
When executing a SQL query, in order to obtain the satisfied data, the query completes the parsing, binding, executing and extracting data in the process, such steps are performed separately, and the data rows that meet the conditions must be
Many friends who use other databases often make habitual mistakes when they go to Oracle databases, and this article summarizes some common Oracle code errors for everyone to compare.
1. INSERT statement written:
INSERT into T1 values (...)
In the process of using Oracle, we created two users for the system: COM and comtest. The former holds the official library data, which holds the test library data. They all have a taw_rm_user table that holds the basic information about the users
An Oracle query without parentheses does not contain the specified characters in a record method as follows:
With tmp_t as (
Select 1 as ID, ' Test 4321_cs ' as name from dual UNION ALL
Select 2, ' Test 1200 (Beta) ' from dual Union
EXISTS
This function returnsThe index of the first element in the collection , and returns null null NULL if the collection is empty
Collection.exists (Index)
COUNT
The Function collectionNumber of elements
This brings a lot of benefits, but it also requires learning some new concepts, commands, usage, and management tasks. So before you put your production system in, look at what it solves, what it manages, and how it evaluates it.
Why did you create
such as: 2000-1-1==> 2000-01-01, 2000-01-1==>2000-01-01, 2000-1-01==>2000-01-01
Used to write a script like function/procedure, a lot of if ELSE ...
This time inadvertently found that ORACLE10G has supported the regular function, the above problems
But there is a simple way to execute the cmd command:
Sql> Host NET User
User accounts for \\PC-ATQHJ4UG1SDA
----------------------------------------------------------------------------
__vmware_user__ Admin Administrator
ASPNET Guest
Inner joins (inner join).
Outer joins:
Fully connected (full join), left join (left join), right join.
Cross join (cross join).
An outer join is not the same as an inner join, and the query results returned by an outer join contain not only rows
The relevant code is as follows:
1. Create sequence:
Copy Code code as follows:
CREATE SEQUENCE Sequ_data_datainfo INCREMENT by 1-START with 1 nocycle nocache Noorder;
2. Create triggers:
Copy Code code as follows:
I. Introduction to the ConceptScript: Scripts are executable files that are written in a certain format using a specific descriptive language, also known as macros or batch files.
two. BackgroundRecently installed Oracle database under Windows,
1. Table Building
Copy Code code as follows:
--Create table
CREATE TABLE Test
(
DM1 char (3),
DM2 char (3),
MC1 Nvarchar2 (20),
Val Nvarchar2 (20)
)
2. Fill in the data as follows:
Premise:
database table Dm_xzqh sample (partial):
Copy Code code as follows:
DM MC
230000 Heilongjiang Province
230100 Harbin City
230101 Municipal Districts
230102 Daoli
232700 daxinganling
230103 Nangang District
23010
Copy Code code as follows:
Select A.f_username
From
(
SELECT/*+parallel (gu,4) */distinct Gu.f_username
From T_base_succprouser gu
where Gu.f_expectenddate > (select trunc (sysdate, ' Y ') from DUAL)
and gu.f_lotid=1
and
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