Oracle pl/SQL programming study notes

Oracle pl/SQL program design study notes this article is mainly to record some confusing or previous knowledge is not clear enough, just select common knowledge points. I. case statement and case expression 1. case statement and case expression both

Oracle returns an even number of data rows

Oracle returns an even number of data rows. When the number of data rows in the query table is an odd number, a blank row is automatically added and an even number of data rows are returned. If the number of data rows in the query table is an even

Oracle Stored Procedure return record set

Oracle Stored Procedure return record set oracle Stored Procedure return record set, the key is to use a cursor. We certainly have a lot of contact with database cursor. We can use OPEN, FETCH, and CLOSE operations to control the cursor for various

Oracle-autonomous transaction analysis

Oracle-autonomous transaction analysis PRAGMA AUTONOMOUS_TRANSACTION database transaction is a unit operation. Either all operations are successful or all operations fail. In Oracle, a transaction starts from executing the first data management

DECODE () function usage

DECODE () function usage: Compares the input value with the parameter list in the function, and returns a corresponding value based on the input value. The parameter list of a function is a sequence of several numbers and their corresponding result

Efficient Paging for Oracle database queries

In the C/S program, the data that contains thousands or tens of thousands of rows in the Grid cannot be displayed on the webpage due to the influence of the page rendering speed, therefore, it is usually displayed in the form of pages (or it may be

Oracle paging SQL statement

Oracle paging SQL statement 1. select * from t_xiaoxi where ROWID in (select rid from (select rownum rn, rid from (select rowid rid, cid fromt_xiaoxi order by cid desc) where rownum 9980) order by cid desc; execution time 0.03 seconds 2. select *

Oracle (4) Four Data Types

When compiling pl/SQL programs, you can define variables and constants. scalar type (scalar) B. composite c. reference d. lob (large object) scalar type (scalar)Declarec_tax_rate number (3, 2): = 0.03; -- username www.2cto.com -- v_ename emp. ename %

Oracle scheduled execution of Stored Procedures

Oracle scheduled execution of stored procedures 1. create or replace PROCEDURE sp_wftestone (msg varchar) as www.2cto.com begindelete from wf_testone; commit; end; 2. to create a job, run SQL> variable v_jobnum number; SQL> exec dbms_job.submit (: v_

Use of oracle 11g r2 LogMiner

The general process of using oracle 11g r2 LogMiner! Use the oracle log analysis tool LogMiner. set the date format to alter system set nls_date_format = 'yyyy-mm-dd hh24: mi: ss' scope = spfile; select to_char (sysdate, 'yyyy-mm-dd hh24: mi: ss ')

Problem solving-occurrence Symbol & quot; (& quot; when the following is required)

Solution to the Problem -- the symbol "(" one of the following is required) encountered a problem during the creation of the stored PROCEDURE today: www.2cto.com procedure qiuyue. PRO_INSERT_DYNA_TABLE compilation error: PLS-00103: Symbol "(" when

Oracle daily statistics statement

Oracle daily Statistical Statement -- Create TABLE TestCTEATE table test (id number not null, modifiedtime date not null) -- count SELECT TO_CHAR (T. MODIFIEDTIME, 'yyyy-MM-DD ') TIME, COUNT (*) countfrom test t www.2cto.com -- the query condition

SQL plus for Oracle

The simple application of SQLPlus in Oracle is a command line execution tool provided by Oracle. After installation, SQLPlus is automatically registered in the system. After Oracle is installed, an emp table exists. Use SQLPlus to manipulate Oracle.

Oracle command to create a primary key foreign key

Oracle command to create a primary key foreign key 1. create a student table [SQL] SQL> create table t_stu (2 stuid number (10) primary key, 3 stuname varchar2 (20) not null, 4 stusex varchar2 (2) default 'male' check (stusex in ('male', 'female ')))

Oracle update operations

Oracle update operation copy TABLE: [SQL] CREATE TABLE myemp AS SELECT * FROM emp; www.2cto.com 1. add data Syntax: [SQL] INSERT INTO tablename [(field name 1 field name 2,...)] VALUES (value 1, value 2 ,...); add a piece of data: Recommended usage:[

Dual in oracle

In oracle dual explanation, oracle introduces dual to conform to the Syntax 1. From the perspective of name, dual is not a acronym, but a complete word. Dual refers to logarithm, Which is dual and dual when used as an adjective. 2. The dual table in

How to filter duplicate data records using SQL statements (Oracle)

Two temporary tables are created for filtering duplicate data records by SQL (Oracle), and different fields are used as the query example: [java] create table table1 (id int, ip varchar (15), city char (20); www.2cto.com insert into table1 values (1,

Use of the oracle wm_concat Function

The oracle wm_concat function uses the oracle wm_concat (column) function, which is frequently used. The following describes how to use the oracle wm_concat (column) function to merge fields, if you are interested in using the oracle wm_concat

Glogin. SQL command Analysis

Glogin. SQL command analysis glogin. SQL is the first command to execute the sqlplus command. You can use it to set sqlplus environment variables and personalized sqlplus settings. The following example shows my frequently used settings.Vi $

Oracle pl/SQL's "art appreciation" from if to then"

Oracle pl/SQL's "art appreciation" from if to then"In oracle development, the conditional expressions between if and then are full of "art" and require us to discover and appreciate them. Appreciation 1: What is the final result of a three-value

Total Pages: 2147 1 .... 2084 2085 2086 2087 2088 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.