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
Additions and deletions to check the orthogonal connection to create a table: CREATE TABLE table_name (num int identified (+) not NULL,--identified self-incrementName VARCHAR2 () not NULL,--not null is not emptyAge VARCHAR2 (20),Sex VARCHAR2
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
----Create data1.1. Create tables and insert data650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "/>Create table district ( id number (10) Not null, parent_id number
Create or replace procedure Sp_addprojectqj (RET out number,Flowid in number--process ID)AsCursor C_design isSELECT * from lc_vr_detail where lc_crm_visitreport_id = Flowid and Dd_status! = 2;C_row C_design%rowtype;V_ID number;BeginFor C_row in
In the system development process, it is necessary to query the data, most of the time, the amount of data queried from the database is large, the system page can not be fully displayed, and query all the data will affect the response speed of the
Today's repository is locked and checked, saying that it was logged wrong more than 10 times the user will be locked, there is the understanding lock and password operationTo activate the sqlplus in a non-link waySqlplus/nolog;Link the repository as
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
Note: Changes to the database only need to modify the view layerTwo different ways:(1) Configure in the Tnsname.ora file in the Oracle client directory that BIEE comes withCopy and paste the Admin folder under
If the system is a 7x24-hour running database, cold backup is unrealistic, and a hot backup is a way to back up a database in the case of a database run, using the Archivelog mode mode. The advantages and disadvantages of hot backup are as
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
ORACLE multi-Table query optimizationORACLE has a high-speed buffer concept. This high-speed buffer is used to store the executed SQL statements. Therefore, oracle has to do a lot of work when executing SQL statements, such as parsing SQL statements
Oracle Database grouping statistics by time, oracle statistics
SQL statement used by Oracle to group statistics by TimeTable 1 is as follows:
Number of days (exportDate) (amount) -------------- ----------- 14-2 month-08 20-3 month-08 2 14-4 month-08
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
Differences between rownum and row_number in Oracle databases: rownumrow_number
It is clear that for rownum, it is the number of the row returned from the query that is sequentially allocated by the oracle system. The first row is allocated with 1,
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.