data.CREATE TABLE author(A_ID Number (8) is not NULL,A_name varchar2 (100),A_age Number (3));CREATE TABLE book(B_ID Number (8) is not NULL,B_name varchar2 (100),A_ID VARCHAR2 (100));Insert into author values (1001, ' Zhangsan ', 40);Insert into author values (1002, ' Lisi ', 30);Insert into author values (1003, ' Wangwu ', 50);CommitInsert INTO book values (2001, ' Think in PL/SQL ', ' 1001,1002,1003 ');Co
= sid_ DESC = (sid_name = ORCL) (Oracle_ HOME =/opt/oracle/product/11gr2)) LISTENER = (description_list = (DESCRIPTION = (A ddress = (PROTOCOL = TCP) (HOST = 192.168 . ) (PORT = 1521 ))) Adr_base_ LISTENER =/opt/oracle This file changed, and the Tnsnames.ora file in localhost changed to local IP, I do not know whether this has played a role, anyway changed is also true# Tnsnames.ora Network Confi
Oracle is the name of the manufacturer and the name of the database product. such as Sybase's Sybase database. and Microsoft's database product is called SQL Server.PL/SQL is the name of an Oracle database that is used by the language. Microsoft's SQL Server is called T, you
to call the package process or functionWhen calling the package's procedure or function, you need to have the package name before the procedure and function, and if you want to access packages for other scenarios, add the scheme name before the package name. Such as: --Call the stored proceduresql> exec sp_package.update_sal (' SCOTT ', 8888);--Call functionvar income number;Call Sp_package. Annual_income (' SCOTT ') into:income;Print income; Special Note: The package is a very important part o
Oracle PL/SQL Composite data types
Composite data types can be roughly divided into two types. The first type is record type, which is suitable for processing single row and multiple columns of data, a bit similar to VO in java; the first type is set type, suitable for processing Single Column and multiple rows of data, similar to List in java, the following expe
anchored declaration Data types for Orache VARCHAR2: Stores variable-length characters. Parameters must be set to the maximum length of the character data, up to 32767. Do not use constants or variables to make the maximum length: you must use the literal value of the integer type. Database column has a maximum width of 4000 bytes CHAR: Stores the field characters, parameters are optional. Do not use constants or variables to make the maximum length: you must use the literal value of the intege
to at least 4g,2 a G is very card.2. While hard disk space is generally no problem, set aside about 2G.3. The installation is complete, there will be an interfaceWe can either unlock the required account or change the user name in password management. Careful to find that there is such a sentence: The database control URL bit https://localhost:1158/em. This is equivalent to Enterprise Manager in SQL Server. Unlike it, the manager is managed with a br
Label:PL SQL Cursors Hrno records in the Hregright table that do not exist are populated with the Hrno in the House table (house only) Declare
cursorHouse_cur is
SelectH.regno,h.hrno fromHouse HwhereH.hrno is not NULL Group byH.regno,h.hrno having Count(H.regno)=1; begin
forHouseinchHouse_cur LoopUpdateHregright RSetR.hrno=House.hrnowhereR.regno=House.regno andR.hrno is NULL; EndLoop; End; PL
Oracle---Connect oracle12c (64-bit) version with PL/SQL Developer 1.installing Oracle 12c 2, install the three-bit Oracle client ( instantclient-basic-nt-12.1.0.1.0) Download the instantclient-basic-nt-12.1.0.1.0.zipand unzip it to Product under the
Tags: plsql installing Oracle Client InstallationDownload the 3 required packages (in order to connect the 11g database)1:oracle Client (Oracle clients)Http://www.oracle.com/technetwork/cn/database/enterprise-edition/downloads/112010-win64soft-086667-zhs.htmlDownload Win64_11gr2_client.zip Specific installation method can refer to Baidu2:
Today with PL/SQL to connect to a database old report ora-12541: TNS: No listener error.
Solution:
Refer to the SQL * Plus User's Guide and reference for more information.[Oracle @ vserever75 ~] $ Sqlplus/nolog
SQL * Plus: Release 10.2.0.4.0-production on Thu Apr 25 10:28:11
Plsqldev download | plsqldev download cracked version download | plsqldev download
PL/SQL developer is an integrated development environment dedicated for development, testing, debugging, and optimization of Oracle PL/SQL storage.ProgramUnits, such as triggers.
Oracle | PL/SQL Unique index (Unique Constraint) Usage
1 goalThe following example shows how to create, delete, disable, and use uniqueness constraints.
2. What is a uniqueness constraint?A uniqueness constraint refers to the constraint that a field or multiple fields in a table can uniquely identify a record. Union fields can contain null values.
Note: in
by using PL/SQL bulk query fetching, each column of data in Excel is copied and pasted into the new intermediate table, which is sticky when pasted, that is, some columns will be inserted into the whole column from the second third row, causing the data to be confused, and then it does not support the bulk deletion of the entire column of data, So it's the best way to import an entire Excel table at once.Th
Tags: des C Class A HTTP tarAlways use SQL Develope connection database, as long as the write on IP, user name, password, sid and so on can connect, and later found that using PL/SQL connection to the remote Oracle database How to connect ah?Here's how to modify the Oracle c
Declare partial logic part other exception handling part; PL/SQL block syntax
Common Oracle Exception Handling
Name
Description
Other
Including all exceptions (maximum exceptions)
Value_error
Value exception
No_data_found
No data found
Too_many_rows
Too much data
In Oracle development, the conditional expressions between if and then are full of "art" and require us to discover and appreciate them.
Appreciation 1: Three-value Logic
If an expression contains a null value, what is the final result of the expression? For example, 2
Example:
IF salary> 4000THENGive_bonus (employee_id );End if;
The null value in a Boolean expression causes the result of the entire expression to be null. That is, if salary is null,
From the design of the Oracle shared pool and the PL/SQL writing method recommended by Oracle, we can see that variable binding has a great impact on performance, how to bind variables in PL/SQL?
First, let's take a look at the
Label:Directory Data type Defining variables PL/SQL Control structureReference oracle10g data Types Summary PL/SQL basic articlesData type Learning SummaryCharacter typeChar, nchar, varchar, nvarchar: There are n characters stored with no n in bytes storage, VAR is variable, storage space is stored in the actual size,
Tags: login page str asi ENC int www ges alt db instanceDeclaration: PL/SQL version:PL/SQL Developer 9.0.6 (http://files.allroundautomations.com/plsqldev906.exe) Error notification Cause: PL/SQL supports only 32-bit OS, and the workaround is to load an additional Oci.dll fi
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.