)
Description: determines whether expr1 and expr2 are equal. If they are equal, null is returned. Otherwise, expr1. expr1 and expr2 must be of the same type.
SQL> select nullif (1, 3) from dual;
NULLIF (1, 3)
-----------
1
SQL> select nullif (1, 1) from dual;
NULLIF (1, 1)
-----------
SQL> select nullif ('1', 1) from dual;
Select nullif ('1', 1) from dual
*
ERROR
Tags: PL/sql out create media binding exce end static Ora1. Static SQL vs. dynamic SQLThe Oracle compiled PL/SQL program block is divided into two types:The first is the pre-assembly (early binding), that is, the SQL statement during the program compilation has been determin
This document is compiled and summarized based on relevant information. It mainly describes the most authoritative and correct methods and steps for obtaining SQL statement execution plans in Oracle databases.
This document is compiled and summarized based on relevant information. It mainly describes the most authoritative and correct methods and steps for obtaining SQL
Oracle Database (ORA-02270: the unique or primary key mismatch for this list) problem was just encountered when writing an oracle database. You cannot find the answer you want on the Internet. I keep thinking about these words. Then, remind me by friends in the group. It turns out that foreign key tables lack unique constraints. Example: www.2cto.com foreign key
Tags: lex des line import exe script value cat HTTPSNote: This article is from the shenzhen gg java How to pass a list to Oracle stored procedure One: a PL/SQL array is built on the database side. 1 CREATE OR REPLACE TYPE Tables_array as Varray (+) of VARCHAR2 (+); 2 3 drop table test purge; CREATE TABLE test 5 ( 6 name VARCHAR2 (+) 7 ); 9 10
How Java passes a list to an Oracle stored procedure. Examples include the following:An array of PL/SQL is built on the database side.CREATE OR REPLACE TYPE Tables_array as Varray (+) of VARCHAR2 (+);d ROP table Test purge;create table Test ( name Varc HAR2 (+)); Create or replace procedure T_list_to_p (arr_t in Tables_array) Isbegin for i in Arr_t.first: Arr_t
How Java passes a list to an Oracle stored procedure, as in the following example:An array of PL/SQL is built on the database side.CREATE OR REPLACE TYPE Tables_array as Varray (+) of VARCHAR2 (+);d ROP table Test purge;create table Test ( name Varc HAR2 (+)); Create or replace procedure T_list_to_p (arr_t in Tables_array) Isbegin for i in Arr_t.first: Arr_t.la
I. Description
Oracle provides a profiler toolkit that allows you to view the performance of each module during PL/SQL Execution. You can download this script from MOS:
Implementing andusing the PL/SQL profiler [ID 243755.1]
You can also download it from my csdn:
Http://download.csdn.net/detail/tianlesoftware/4051100
When there is asignificant gap between user
/*** Execute Stored procedure (currently only supports returning one cursor) nevernull** @param sql* executed statements * @param index* subscript of the current cursor * @param obj * parameters (used to replace the? in SQL statements) * @param rop* Register the output parameters of Oracle (note that if the subscript is 1, the input parameter is 2 output parame
In oracle11g, Oracle has a lot of security improvements, and in terms of network permissions control, there is a new concept called ACL (Access control List), which is a fine-grained permission control. Before the ACL, we have some packages, such as Utl_mail, UTL_SMTP and so on, you can use these packages to connect to external hosts, and by default, these packages are all assigned to the public role, so th
data rollback failed!") ");}}Log.error ("Cleanup data failed with error message:" +ex.getmessage ());} finally {if (null! = conn) {try {Conn.close ();} catch (SQLException se) {Log.error ("Clean data, shut down database failed!");}}} The second type: in a separate query The amount of data in the SQL must not exceed 1000Workaround:For exampleSelect * FROM table_name where col in (' col1 ', ' col2 ' ...)If the item in the back is too large, this error
oracle| function
Pl/sql single-line functions and Group functions
A function is a program that has 0 or more parameters and has a return value. In SQL, Oracle builds a series of functions that can be called SQL or PL/SQL statemen
single-row function, all rows are known during parsing. Due to this difference, the requirements and behaviors of group functions and single-row functions are slightly different.
Group (multiple rows) Function
Compared with single-row functions, Oracle provides a wide range of group-based, multi-row functions. These functions can be used in select or select having clauses. They are often used together with group by when used for select substrings.
language • ANSI standard • keywords cannot be abbreviated • use statements to control the definition information of tables in the database and data SQL * Plus • an environment • one of the features of Oracle • keyword can be abbreviated • command cannot change the value of data in the database • run in a centralized manner • use
following line:Define_editor = vi
F. Run the command fileSQL> Start testSQL> @ Test
Common SQL * Plus statementsA. create, modify, and delete tablesThe command format for creating a table is as follows:Create Table Name (column description list );
The command to add a new column to the base table is as follows:Alter table table name Add (column description list
SQL statements, the dy_dj voltage level and xh_bz cancel sign are not indexed. Therefore, full table scan is performed, in the first SQL statement, the dy_dj = '1kv below 'condition is 99% in the record set, while the xh_bz = 1 condition is only 0.5%, when the first SQL statement is executed, 99% records are compared with dy_dj and xh_bz. When the second
Oracle Export Import table (. SQL,. dmp file) two methods,. SQL. dmp
Two ways to export an import table (. SQL and. dmp files) from Oracle
Method 1: Export and Import SQL files
Export procedure
5. Select the table for data export
Oracle's formal expression is implemented in the form of various SQL functions and a WHERE clause operator. If you are unfamiliar with regular expressions, this article will give you an idea of this new, incredibly powerful, yet seemingly mysterious feature. Readers who are already familiar with regular expressions can learn how to apply this functionality in an Oracle
partition day_20121130;--delete data by partition
--5), increase zoning
ALTER TABLE A ADD partition day_20121204 values (' 20121204 ');
--), drop partition
ALTER TABLE A drop partition day_20121204
Append to SQL for table looping to increase partitioning:
Declare
J Number: = 1;
M VARCHAR2 (50): = ' 20130104 ';
Vv_sql varchar2 (100);
Begin
while (j
Vv_sql: = ' ALTER TABLE Dw_cdr_unsuccessfulcall_day add partition Day_ ' | | m | | ' '||' Va
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.