Oracle Study Notes (4) PL/SQL

First, give a smallProgram: 1 Set Serveroutput On 2 Declare 3 Maxrecords constant Int : = 100 ; 4 I Int : = 1 ; 5 Begin 6   For I In   1 .. Maxrecords Loop 7 Insert  

Restrictions on the length of Oracle SQL statements and Solutions

When I was writing SQL statements recently, I encountered two problems:1) ORA-01795: Maximum number of expressions in a list is 1000Cause: the SQL statement select pallet_id, box_id, status from sd_current_box where pallet_id in ('"+Pallets+ "');

Oracle to sqlserver records

I used Microsoft's ssma for help, but currently only tables can be used for conversion, and others need to be manually modified ,-- Oracle can query appserviceinfo @ aspdb and call tables of other databases. SQL: aspdb. DOB. appserviceinfo  

Install and use 32-bit PLSQL-developer in a 64-bit Oracle database environment

After a 64-bit Oracle 10g Database is installed on the 64-bit win2003 operating system, you can connect to the database using PLSQL over the network, but the server cannot connect to the database.Solve the problem as follows:1. Install the 32-bit

ORA-01033: Oracle initialization or shutdown in progress

ORA-01033: Oracle initialization or shutdown in progress C: \ Users \ Administrator> sqlplus/nolog SQL * Plus: Release 10.2.0.1.0-production on Friday April 26 19:05:16 2013 Copyright (c) 1982,200 5, Oracle. All rights reserved. SQL> connect

Simple Oracle Stored Procedure

Simple Oracle Stored Procedure -- The salary is increased by 500, old. SAL> 2500 not added, new. SAL> 2500 is changed to 2500; Select * from EMP -- before salary increase Create or replace procedure sp_add (add in number) is -- add parameter

Code of the efficient paging stored procedure in Oracle

Create or replace procedure p_pagination(Pindex in number, -- the page number starts from 1Psql in varchar2, -- query statementPsize in number, -- number of rows per pagePcount out number, -- total number of pagesV_cur out sys_refcursor -- return

Batch Processing of Oracle backup and recovery

===================== Backup ==================================== ============RMAN target/audit file =/Oracle/Shell/CFG/bakdb. RCV trace/Oracle/Shell/logs/bakfull. log & Configure device type disk parallelism 8;Configure Channel 1 device type disk

Oracle Installation notes.

I have been using sqlserver and have no chance to access Oracle. In the past few days, I have installed Oracle 9i and installed it in my previous notebook, today, I installed it on my desktop again. An error was reported when the installation was

(Mark) Oracle update statements

Basic update statements Update all records Update Set = Create Table TestSelect object_name, object_typeFrom all_objs;Select distinct object_nameFrom test;Update TestSet object_name = 'opops ';Select distinct

Oracle built-in functions

1. Length and lengthb Both of the above functions are used to obtain the length of the string, but the returned results may be different. The length units returned by lengthb are bytes rather than characters. Length indicates the number of

Oracle split for varchar to number

  We all know that Oracle itself does not have the split function. We have found a better solution on the Internet. Copy it here for future use. Fn_split Code highlighting produced by Actipro CodeHighlighter

VB.net connecting Oracle and PHP to Oracle

1. VB.netCodeAs follows: Dim ss as string'Specify the connection string => 0 KSs = "(description = (address_list = (address = (Protocol = TCP) (host = 192.168.77.128) (Port = 1521) (CONNECT_DATA = (SERVICE_NAME = orcl )))"'Specify the name of the

Asp Access to Oracle Data

Two days ago ASPProgramAn unexpected problem occurred many times when accessing the Oracle database. The problem and solution are summarized as follows:   1. The service name used when connecting to the database may exist with the

Additional representation of Oracle left and right connections

"(+)" Can be used in Oracle, and 9i can use left/right/full outer join.Left Outer Join: left Outer JoinSelect E. last_name, E. department_id, D. department_nameFrom employees eLeft Outer Join orders ments dOn (E. department_id = D. department_id

Oracle Stored Procedure

Create or replace procedure proc_update_staffinfoIsTemp number;Cursor cur_staff is select * From hr_rs_staff where deleted = 0 and sysdate> entryTime + 365;BeginFor u in cur_staffLoopTemp: = Mod (floor (sysdate-to_date (U. entryTime, 'yyyy-mm-dd'), 3

Oracle converts sqlserver

Recently, a Project Database of the company was converted to SQL Server (2000 or 2005) as a database of Oracle. At the beginning, I found some information on the Internet, I found a tool called swissql. I tried it and failed to find it again. later,

Import the Oracle database file dmp

Before performing the following operations, you 'd better create a user name and password with the same name as the backup, as well as permissions, and table space. The following is an operation in the CMD command window to see how it is imported.

Oracle System Table query

From: Http://www.gbunix.com/htmldata/2004_06/2/5/article_53_1.html The data dictionary dict always belongs to the Oracle user SYS.1. User:Select username from dba_users;Change PasswordAlter user spgroup identified by spgtest;2.

Efficiency of exists and in oracle

There are two simple examples to illustrate the efficiency of "exists" and "in ". 1) select * from T1 where exists (select * from T2 where T1.a = T2.a ); Small Data size of T1 and large data size of T2, T1 2) select * from T1 where T1.a in (select

Total Pages: 2147 1 .... 2114 2115 2116 2117 2118 .... 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.