InStr (String,substring[,start[,occurence]])Third parameter, start the search locationThe fourth argument, the substring of the search appears several times.
such as: Select InStr (URL, ' X ', 1,2), URL from table_name where select_condition
The bitmap index of the 1,oracle database (Bitmap index) is indeed for those fields that are sparse (low-cardinality, low cardinality), but one thing to keep in mind is that it is for fields whose values do not change frequently. In practical
Interpretation in document: It returns TRUE if an INSERT, UPDATE, or DELETE statement affected no rows, or a SELECT into statement returned no Rows. Otherwise, it returns FALSE.
The explanation is more subtle:
%notfound is the logical opposite
Four ways to start Oracle databases
1, Startup Nomount
Non-installation startup: This way to launch executable: Rebuild the control file, rebuild the database, start the instance, that is, start the SGA and background processes, this startup
Today in the virtual machine in the centos6.3 system installed Oracle 11g out of many problems, first record the interface garbled problem bar.
This interface appears during /runinstaller installation:
Zysong.ttf download is an Oracle font
There are five main loops: Exit when, loop, while, for (normal loop), for (cursor loop), and below for example one by one (all stored procedures).1, Exit when cycle:Create or replace procedure Proc_test_exit_when isI number;Begini:=0;LOOPExit when
Oracle Related dictionaries:
User_source user's stored procedure, function's source code dictionaryDba_source The source code Dictionary of the stored procedures and functions for all users of the entire systemAll_source the current user can use
Objective:A long time ago, estimated in 2010 years or so in the use of Oralce, there is a need to match the data of the two tables, the two tables of the structure of the same, one is a formal table, a temporary table, the two tables of data is a
/*
Quick Flashback
PROCEDURE
PACKAGE
PACKAGE body
type body
TRIGGER
FUNCTION
type
1. Use the SYS administrator
to log in 2. Command Window execution (for easy access to data, will retrieve the data stored in TXT
This article address: http://blog.csdn.net/kongxx/article/details/7107683
After installing the cx_oracle and Oracle Instant client packages, the following problems occur when importing packages using import Cx_oracle
Oracle Bulk Import test data One, test WinDOS methodDeclareMAXRECORDS constant int:=1000;I int: = 1;BeginFor I in 1..maxrecords loopINSERT INTO Test2(ID, name)Values(Test2_seq.nextval, To_char (' 9999 ' +i));End Loop;Dbms_output.put_line ('
--1, select employees in Department 30
SELECT * from EMP where deptno=30;
--2, listing the names, numbers and departments of all clerks
Select Ename,empno,dname from EMP e INNER JOIN dept D on e.deptno = D.deptno where Job=upper (' clerk ');
--3,
Oracle provides internal functions:
numtodsinterval (,), X is a number, add and subtract values, can be decimal and fractions, such as 1,1/2, 0.05 C is a string, for the addition and subtraction units, commonly used units have (' Day ', ' hour ', '
1 steps; New Wed Project2, right key-myeclipse-add Hibernate capabilities ...Hibernate 3 Keep the default to--next--next--Datasource:use JDBC DriverDB Driver: Provides alternative drivers, such as newly built drivers: ORACLE9/10The following
First define cursors and variables
CURSOR C1 is SELECT ename,ejob from emp WHERE deptno=10;
V_name VARCHAR2 (10);
V_job VARCHAR2 (10);
First: Using loop loopsOpen C1;LoopFetch C1 into v_name,v_job;Exit when C1%notfound;......End LoopColse C1;It is
from:http://space.itpub.net/22664653/viewspace-711728 Python ConnectionOracle Database, you need to use the Cx_oracle package.1 Download Cx_oracleDownload address for this package: When downloading http://cx-oracle.sourceforge.net/, be careful to
Several ways in which a function/procedure in Oracle Returns a result set:
In the case of function return, the stored procedure can only be changed to out parameters and passed in the Oracle 10g test.
(1) Return cursor:
The return type is:
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.