OracelAnalysis function: You can remove the first (last) data in the group First_value () over (partition by ...)
Last_value () over (partition by ...)
Create
TableAtem
(
CO1
VARCHAR2(10),
CO2
INTEGER
)
Insert
intoAtem (CO1,CO2)
Values(' A ', 1);
In the http://stackoverflow.com/questions/277744/jdbc-oracle-arrayindexoutofboundsexception to find such a sentence:
In Oracle Metalink (Oracle's support Site-note ID 736273.1) I found that's a bug in JDBC adapter (version 10.2.0.0 .0 to 11.1.0.7.0)
Oracle9i to the Chinese character sorting default Pinyin sort, but I recently sent a new arrangement of the results are not accurate, through the Internet to find, the solution is as follows:
Method 1: Set the environment variableSet
Export from the database server using EXP is displayed as follows:
[oracle@kf15-1]:/users/oracle>$ exp username/passwd@kf15-1/i1000 tables=table_name file=table_name_unix.dmp Satistics=none buffer=1000000 export:release 10.2.0.4.0-production on
/** * Deletes the name of the field passed in to all tables in the current database, and the record of the corresponding tagged value * MR_CHENPH (2012-1-12) * Invocation Way Select Deletetag (' Isdel ', 1) from Dual * to The above statement
ORACLE interview Questions-Technical articles
1. Explain the different points of cold and hot backup and their advantages
Answer: Hot-backed databases for archive mode, backed up while the database is still working. A cold backup is a database
Bulk change methods for table and indexed table spaces in Oracle1, query the current user of all the tables
Select ' ALTER TABLE ' | | table_name | | ' Move tablespace tablespacename; ' From User_all_tables;
Select ' ALTER TABLE ' | | table_name |
Nested cursor loops Create or replace procedure xh_number_186_diff_p is begin declare   in Oracle stored procedures ; -Query out a set www.2cto.com CURSOR c_number is SELECT Numbe r186, money186 from xh_number_186
Note: The difference from max,min, although it can be implemented, is only for numeric fields.
1, initialization of the original data:CREATE TABLE Test (ID number (2), name Varchar2 (a), salary number (6,2));INSERT into test values (1, ' Tom ', 120);
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
I know Oracle does not support auto_increment automatically increment, need to establish a sequence to achieve automatic increment.
Then set up a trigger to implement the Add 1 function.
The function that I want to implement is to add a piece of
Declare
Cursor C1 is a select FID from t_dev_informationtable;
FID T_dev_informationtable.fid%type;
Begin
Open C1;
Loop
Fetch C1 into FID;
Exit when C1%notfound;
Insert into T_dev_maintenancesingles (Fnumber, Fsimplename, FID, Fcreatorid,
Partial commit inserts in Oracle to prevent redo from consuming too much to commit transactions in batches: The following are three different pl/sql bodies:
1, write a simple pl/sql block to simulate the case-by-line submission, pay attention to
Normally sqlplus executed well, when I put the shell script containing the Sqlplus command into the scheduled task, the error: Error 6 initializing sql*plus sp2-0667:message file Sp1.MSB not found sp2-0750:you could need to set Oracle_home to your
--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, process definition (package, cursor, process)
------------The top return is a record, but returns more than one record to use the following--------------------
--1: The process of returning a result set, in which the Test_cursor cursor
is defined
Today, the database hang to solve a problem. Log also nothing wrong, with Sqlplus '/as sysdba ' landed in after has been stuck in where, is very depressed.
Forced to land Sqlplus,
$sqlplus-prelim/as SYSDBA
If you can query the SQL statement, you can
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