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
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+ "');
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
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
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
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
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
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
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
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
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
"(+)" 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
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
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,
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.
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.
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
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