PL/SQL Exception handlingException handling when the input number is not in the casedeclare-- definition v_ename emp.ename%type;begin--Selectfromwhere Empno = &gno;dbms.output.put_line (' name:'| | v_ename); Exceptionwhen no_data_found
nonempty constraint NOT NULL
A column in a database table cannot be empty
Uniquely constrained unique
One column in a table does not allow duplicates
The column that contains the unique constraint can be null,
--Basic functions--select Name,count (ID) from Work_test GROUP by name have count (ID) >1--select Upper (name), T.*,lower (name), substr (name,1,5) from Work_test t--Even table update/*update Work_test Set (Price) = (select T.price from Work_test t
Corrected a script, encountered some of the differences between the two databases, recorded:Trigger:
Difference
Mysql
ORACLE
Description
Create statements different
Create Trigger ' AA ' before INSERT
The configuration of an Oracle RAC listener is slightly different from a single instance, but the principle and implementation methods are essentially the same. In Oracle, the TNS process is used to provide service registration for one or more
Overview:The flashback technology is part of Oracle's powerful database backup recovery mechanism, which provides fast and minimal recovery (most of the flashback functionality can be done in the database online state) When a logical error occurs in
First, Sqlplus, the direct use of Desc[ribe] tablename can be.Second, when external application calls view the table structure in Oracle, you can only use the following statement instead:1. See field names and data typesSelect * from cols
The Tnsnames.ora file needs to be found under the Oracle installation folder, with the following path:Under Oracle installation file: App\oracle\product\11.2.0\server\network\admin/tnsnames.oraAdd the following code at the end of the file:--where
Step one: Unzip the two Oracle database package and click Setup.exe to run the Setup programStep two: Wait for the installer to detect if the system meets the minimum configuration requirementsStep three: Install the interface directly click Next to
Query the current process of the database and the number of connections to the session, the number of concurrent connections and the status of the session and so on, you can refer to the next ha, hope to help you1. Query the number of connections to
1, download Oracle's compressed files on the official website, and download all two of them. and two simultaneous check unzip in a folder inside. 2, after decompression, such as, click Setup.exe Wait a moment, 3, start the installation:Do not
Oracle Import Chinese garbled solution One, ensure that the encoding of each client character set is consistent with the server character set encoding1-Determines the sqlplus character set encoding, if Windows sets environment variables.2-Ensure
There are a number of reasons why Oracle Index failures can be easily caused:1. Use the function on the index column. such as SUBSTR,DECODE,INSTR, and so on, to the index column operation. You need to create a function index to resolve it.2, the new
Processing method for Oracle 11g cannot export empty table with EXPExecute the following SQL query in Plsql Dev:Select ' '| | table_name| | ' allocate extent; ' from where num_rows=0Then you can export the empty table in the oracle11g after you
1. If you use powerdesigner such a tool, be careful to remove the double quotation marks from the table in the exported SQL statement for the tool.2. When building tables and building fields, use underscores between different words, such as rec_id3.
The first blog post, hope to write down their experience, to prevent later forget. Today encountered a mistake, that is, using MAVEN to build the project, pom.xml files in the Oracle configuration always error, in Baidu search for a long time did
Objective:recently in the study of Oracle, here I put the installation and configuration process to record, follow my method of this step by point basically no problem, If you have any questions, you can talk about learning from each other.
1. Export the ambition (database name) structure and the Ambition.sql file of the data from the MySQL database.2. Convert ambition.sql to MySQL data model with power designer.Give the Model a name and choose your MySQL version.Select the. sql
This article is reproduced from http://blog.itpub.net/28602568/viewspace-1364844/Preface: Do you want to query, summarize or optimize the rows of SQL every day, the following SQL wants to help ---query perform slow sql:select s.sql_text every
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