Based on the previous time, add null value judgment:
1. Direct judgment
Select case when S1 is null then S1 when S2 is null then S1 when S3 is null then greatest (S1, S2) When S4 is null then greatest (S1, S2, S3) when S5 is null then greatest
Many people are working on ASP. net + Oracle development will encounter connection problems, the prompt "unable to load DLL (OCI. DLL) ", but this file exists in the system. Many people are overwhelmed by this. I have seen many posts asking for help.
I did the test today, but I don't know why I can't choose the data I just changed. The previous data is correct. It's hard to understand. The morning passed. In the afternoon, I can only go to an old employee. I may have to waste another afternoon.
-- 1. ASCII returns the decimal number corresponding to the specified character;Select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') SpaceFrom dual;-- Return Value: 65 97 48 32
-- 2. the CHR returns an integer and the corresponding
1. Oracle startup and Shutdown1. In a single-host environmentTo start or shut down the Oracle system, you must first switch to the Oracle user, as shown below:Su-Oracle
A. Start the Oracle SystemOracle> svrmgrlSvrmgr> connect internalSvrmgr>
Recently, I learned how to import and export ORACLE data. Many friends say that exp and IMP are used for import and export. However, exp and IMP are not flexible. The format of the generated file is not well controlled when exporting single table
Flash back technology and recovery
Overview of flash back TechnologyIn Oracle10g, the flashback technology can be used at the row, table, and database levels. The specific categories are as follows: 1. the row-level flashback technology can be used
(1) privileges:Privilege is the power to execute a special type of SQL statement or to access another user's object. There are two types of privileges: SYSTEM privileges and object privileges.
System privilege: it is the right to execute a special
First, perform some basic settings.
1. Input in SQL * Plus
SQL> connect sys/sys as sysdba;
SQL> alter system set job_queue_processes = 6; -- this parameter must be greater than 0 during automatic data collection.
System altered
SQL> alter system
**************************************** **************************************** ***
Experiment 1: Using RMAN backup for non-archive databases in open state, system error If you use RMAN for backup of a database in non-archive mode, will the
Settings of the remote_login_passwordfile parameter in the Oracle database
The Oracle utility orapwd command can be used to create a password file. The command has three parameters:
C:/> orapwdUsage: orapwd file = Password =
Noarchivelog mode:U confirm log working mode: First method: Query v $ databasesql> select log_mode from V $ database; LOG_MODE------------ARCHIVELOG indicates that the current database is running under the archive log, that is, the database works in
Oracle case Functions
The following are some descriptive examples of Oracle case functions. Of course, for convenience, we will explain the functions of the examples found on the Internet:
Create sequence student_sequence;
Create Table students (ID
Recently, due to the time-frame addition and subtraction tests, I found some time addition and subtraction algorithms on the Internet, which can solve the pressing problem and help more Oracle beginners!
AdditionSelect sysdate, add_months (sysdate, 1
Source: http://blog.ixpub.net/html/58/12945358-420019.html
ToRedHatAs4 andOracle10g. After installing Oracle, use sqlplus to start oracle. After starting Oracle, follow the steps below to start it.
Dbstart and dbshut are available in $ ORACLE_HOME/
During Oracle operations, table lock often happens. When a table lock is encountered, how to query the session and process of the table lock and how to unlock it is a constant problem, the following describes the specific operation steps and methods
After writing this function, I realized that there is a ready-made function named lengthb (). The rogue knows Oracle too lightly and sweated himself!
The length () function in Oracle cannot distinguish between Chinese and English characters. It can
Create Table henry_test (A varchar2 (10), B INT );Insert into henry_test values ('A', 1 );Insert into henry_test values ('bb', 1 );Insert into henry_test values ('cc', 1 );Insert into henry_test values ('dd', 2 );Insert into henry_test values ('ee ',
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