Applicability:
When oracle sorts the query results, the column to be sorted has a null value, and the NULL value must be specified at the beginning or end of the column.
Keywords: Nulls First; Nulls Last
Default Value: the default value of null
1. Static SQL and dynamic SQL Oracle compiler PL/SQL program blocks are divided into two types: one is the early compilation (early binding), that is, the SQL statement has been determined during program compilation, and most of the compilation
After finishing the project yesterday, I asked the test to test it. The test said that paging query does not seem to work. After Turning to page 4th, the data results will be the same.At that time, I was puzzled. It was impossible. The paging
Fault symptom
Oracle Database 11g Database common user login prompt ORA-28002: the password will expire within 7 days
[11: 01: 00oracle @ dvd db_1] $ sqlplus wang/oracle
SQL * Plus: Release 11.2.0.1.0 Production on Fri Nov 16 11:01:23
The distinct keyword can only be used to filter all records in the query field that are the same (the record set is the same). If you want to specify a field, it does not work. In addition, the distinct keyword is sorted, Which is
This article describes how to replace NULL values in SQL Server, Oracle, and MySQL.
In SQL Server Oracle MySQL What should I do if I find a NULL value in the database?
1. MSSQL: ISNULL ()Syntax
Java code
Copy codeThe Code is as follows: ISNULL
Copy codeThe Code is as follows: -- Created on 2010/11/04 by WANGNAN
Declare
-- Local variables here
I integer;
TYPE t_table is table of VARCHAR2 (10) index by VARCHAR2 (2 );
V_t_table t_table;
TYPE t_pg3 is table of asis.
How to deal with the high cpu usage of oracle, this article will introduce the high CPU usage of the oracle process, You Need To Know More friends can refer
1: first, use the TOP command to upload the SPID that occupies the CPU.
PID USERNAME THR PRI
1. telnet to a remote database server
CMD> telnet the IP address of the remote database
2. Users switching to the database
DQXXDBS01:/> su-oracle
3. Use a super user to access the database
$ Sqlplus "/as sysdba"
4. Check the parameters and whether a
The oracle table demo operation statement may be used during the development process. This article will introduce it. If you need it, refer
SQL code
Copy codeThe Code is as follows: -- Created on 2010/07/29 by WANGNAN
Declare
-- Local variables here
How can I get the maximum Date of oracle in the development application? This article will provide such a method for obtaining information. For more information, see
SQL code
Copy codeThe Code is as follows: -- Created on 2010/06/08 by NAN
I. Query
1. query the usage of oracle tablespace
Select B. file_id File ID,
B. tablespace_name tablespace,
B. file_name physical file name,
B. Total bytes,
(B. bytes-sum (nvl (a. bytes, 0) already in use,
Sum (nvl (a. bytes, 0) remaining,
Sum (nvl
SQL code
Copy codeThe Code is as follows: create table test (a VARCHAR2 (20), B VARCHAR2 (20), c NUMBER, d VARCHAR2 (20 ))
Insert into test VALUES ('a1', 'b1', 1, 'T ');Insert into test VALUES ('a3 ', 'b3', 3, 'T ');Insert into test VALUES ('a4 '
I recently used oracle rownum for paging display, and made further analysis and research on rownum. This is summarized as follows, hoping to benefit everyone.
For rownum, it is the number of the row returned from the query that is sequentially
If Oracle has two users A and B, if A wants to access the table owned by B, the statement should be:
Copy codeThe Code is as follows: SELECT * from B. TABLENAME.
I want to ask, can I modify the Oracle settings to change the language in which A
Serveroutput is the configuration parameter of sqlplus, not the configuration parameter of the database. Modify and save the Configuration Parameter of sqlplus, so you do not need to reset it every time you open sqlplus.
The setting method is as
This article describes how C # connects to the Oracle database. Through the Oracle. DataAccess. dll in instant client and ODP.net, We can conveniently deploy. net applications or sites without installing the Oracle client. Next we will introduce
Receive the contract_no and item_no values and search for them in the inventory table. If the product:
Delivered, assigned in arrival_date as the 7 days after today
Ordered. In arrival_date, the value is assigned to the month after today.
If there
1. Basic Concepts
Two features: complete the constraints of complex business rules that are difficult to complete due to database integrity constraints; monitor various database operations to implement audit functions.
Triggers are divided into:
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