1, what is a cursor?
① retrieves a result set from a table from which the mechanism for interacting with each record is pointed.Operations in the ② relational database are performed on a complete rowset.The rowset returned by the SELECT statement
The code is as follows
Copy Code
In the help of IMP: show just list file contents (n), the default is N. The following experiment shows 2 points: 1.show=y can display statements that create objects in the DMP file. 2.show=y as
The Following oralce stored Procedures Act like the drop if exists feature of MySQL.
code is as follows
copy code
--" Determines whether a table exists and deletes the table if it exists. Create or Replace
statement syntax
The code is as follows
Copy Code
case [Expression]When Condition_1 THEN result_1When Condition_2 THEN result_2...When Condition_n THEN result_nELSE resultEnd
expression is optional. It's worth
Oracle arrays can generally be divided into fixed arrays and variable arraysFixed array
The code is as follows
Copy Code
DeclareType V_ar is Varray (a) of VARCHAR2 (30);My_ar V_ar:=v_ar (' G ', ' m ', ' d ', ' gong ', '
An Oracle database Tutorial cursor usage detailed
1. What is a cursor
The cursor is a kind of pl/sql control structure, can display control to the SQL statement, it is easy to deal with the data of the table.
2. Cursor classification
Display
Oracle INSERT INTO syntax
Basically, there are two ways we can enter the data into the table. One is to enter a pen at a time, the other is to enter several pens at a time. Let's look at a way to enter a pen first.
By convention, we'll introduce
Oracle SQL Developer is a free integrated development environment produced by Oracle Company. Oracle SQL Developer is a free, open-source, graphical tool for developing database applications, using SQL Developer to browse database objects, run SQL
I. Overview of data FilesIn an Oracle database, the system and Sysaux table spaces need to contain at least one data file, as well as several additional tablespaces and their associated data files and temporary files. Oracle's data files and
1. static sqlsql and dynamic SQLThe Oracle compiled PL/SQL program block is divided into two types: one for the pre-assembly (early binding), that is, the SQL statement is determined during program compilation, most of the compilation is of this
Basic EnvironmentUse two HP DL580 servers as RAC nodes, storage using IBM V7000. The specific environment is as follows:
Equipment
Use
IP Address
Disk space
HP DL580
RAC Node 01
rac01-pub:116.1.
Windows server2008/2012 installation Oracle 11.2.0.1 When you create a DB instance, you may be stuck in the 2 the place. this time can 1 , click the Start menu, and in search programs and files, enter msconfig ", enter to open the System
Original link: http://blog.csdn.net/myzhanglt/article/details/7392999
Today's study encountered an unfamiliar function lpad, looked up the document, the usage summarized as follows:Lpad Function: used in PL/SQL to fill some characters to the
1. Download Oracle SQL Developer Third-party database driver on Oracle websiteDownload page: http://www.oracle.com/technetwork/developer-tools/sql-developer/thirdparty-095608.htmlDownload the MySQL Drivers from the MySQL Site. There is drivers here:1
The first step in using the tool is to install the tool and configure the environment! The following is a brief introduction to the installation and simple utility of Oracle 11g Express.A Download the installation processGo to Oracle's official
Example 1:A) double quotation marks are required for column names that begin with "_" in the Query column. b) Use the "case" keyword to determine whether the pass is directly based on the score. create table Tbl_score (id number (4 ), -- id
Oracle database is still at the forefront of commercial databases. The security of the core business and core data running on the Oracle database is particularly important.There are generally two broad categories of disaster recovery products that
10g RAC Process General overviewA RAC concurrencyThe essence of RAC is a database running on multiple computers, the main task of which is that the database is transaction processing, and it solves the concurrency problem by distributed lock
This parameter is related to the Cardinality Feedback feature. The optimizer can estimate many reasons for incorrect base numbers, such as missing statistics, inaccurate statistics, or complex predicates, the base statistics feedback helps the
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