PL/SQL Developer is the main tool used to import or export databases in Oracle databases. This article mainly introduces the process of using PL/SQL Developer to import and export databases, some precautions for import or export are described. Next we will introduce them one by one.
Export Steps:1 tools-> export user o
Today encountered an error prompt: ORA-06502: PL/SQL: numberic or value error: character string buffer too small, the general corresponding Chinese information is: ORA-06502: PL/SQL: incorrect number or value: the string buffer is too small. During the debugging process, we found that the developer defined a variable,
Win7 has gradually become the mainstream Windows operating system, and its 32-bit and 64-bit systems are equally different. However, no 64-bit PL/SQL developer is available yet. When 32-bit PL/SQL developer is directly used to connect win7 (64-bit) as the server's oracle, such errors always occur. You can find a method
1. PL/SQL recordsIntroduction: similar to the structure in advanced languages, you can use custom record types, record variables, and % rowtype to define record variables for processing a single row of data.
Benefit: You can regard this record set as a class and then define multiple objects of this class. The fields in this class are the fields required for user filtering. then you can directly access these
Pl/sql handles exceptions differently from other programming languages, the PL/SQL exception handling mechanism is similar to Ada, with a full inclusion method for handling errors. When an error occurs, the program unconditionally transfers to the exception-handling section, which requires the code to be very clean and
Tags: variable int var rom tag blog Select str EnterCreate a PL/SQL block to calculate the compensation amount for one year. Requirements 2 Pass the annual payroll and annual bonus ratios to PL/SQL blocks by using an *plus substitution variable The 2 bonus ratio is an integer that is converted to a decimal form in the
PL/SQL Developer usage tips, shortcut keys1, set the keyword automatic capitalization: tools->preferences->editor, will keyword case select uppercase. When you enter SQL statements in a window, the keywords are automatically capitalized, and the others are lowercase. This is easy to read code, and to maintain a good coding style, in the same way, in Tools->prefer
This article describes how to set the shortcut keys for PLSQL in Oracle databases, including setting MyObjects, remembering the password, and double-clicking the display table by default.
This article describes how to set the shortcut keys for PL/SQL in Oracle databases, including setting My Objects, remembering the password, and double-clicking the display table by default.
This article describes how
The flow control statements in the PL/SQL program draw on the process control ideas of many high-level languages, but have their own characteristics.
Condition control
The following example describes the use of conditional control statements.
1. If.. Then.. End If condition control
Use If.. Then.. The End If condition controls the syntax structure as shown in Figure 9.15.
Execute the following
I. Related content1. Master the structure of PL/SQL program block, understand and familiar with the application of various variables.Second, the specific operation(i) using the system user login Sql*plus, create a user using the SQL statement: U_ your initials (for example: U_zs), the password is: T_ your number three
(1). PL/SQL is not case sensitive.(2). Character Type:CHAR: up to 32767 characters.(3). Fast format:BeginDeclareBeginExceptionEndEndNote: If you use the first bengin, you must use the second one, and vice versa.(4) annotation method:Single Row -- this is a one-line commentMultiple rows/* this isIsOne-line comment*/(5) PL/SQL
2008/03/20
Basic PL/SQL
1. PL/SQL Basics
2. PL/SQL Block StructureDeclare... Variable DeclarationBegin....Exception....End;/
Variable declaration contentAssign a proper variable name, the correct data type of the variable,
Due to the continuous updating of hardware technology, Win7 system gradually become mainstream, and computer memory gradually increased, in order to make full use of memory resources (because 32 of the system can only use up to 3G of memory), improve system performance, many people began to use the Win7 (64Bit) system. A 64-bit Oracle database is installed on a 64-bit system, but there is no corresponding 64-bit PL/
can distinguish between inner and outer loops, and you can exit the outer loop directly in the inner loop. When writing PL/SQL blocks, you can use the Declareresult int;BeginFor I in 1..100 loopFor j in 1..100 LoopResult:=i*j;Exit outer when result=1000;Exit when result=500;End loop inner;Dbms_output.put_line (result);End loop outer;Dbms_output.put_line (result);End/As shown above, when a
Exception error HandlingA good program should be able to properly handle all kinds of error situations and recover from them as much as possible. ORACLE provides exception conditions (EXCEPTION) and exception handling (EXCEPTION HANDLER) for error handling① has three types of exception errors:1. Pre-defined (predefined) errorsThere are approximately 24 pre-defined exception cases for Oracle. The handling of this exception does not have to be defined in the program and is automatically raised
One, the packageA package is a combination of a set of related procedures, functions, constants, variables, cursors, exceptions, and other PL/SQL programming elements. It is similar to classes in C + + and Java where variables are equivalent to member variables in a class, and procedures and functions are equivalent to methods in a class. By using packages, developers can use the object-oriented approach to
Oracle developer estimates are very familiar with PL/SQL developer, and there are some small function points that some beginners have not found. PL/SQL Developer supports multi-connection multiple windows, as detailed below.
Concept of the primary connectionOpen PL/
Tags: Record rowtype database query name EDR result proc SeleI. PL/SQL (Procedure Language/sql) programming language1. ConceptPL/SQL is an extension of the Oracle database to the statement. In the use of ordinary SQL statements to add the characteristics of the programming l
select; for example, enter SF, press space, automatically replaced by select * from, very convenient, save a lot of time to write duplicate SQL statements.Setup method: Menu Tools–>preferences–>editor–>autoreplace (auto-replace) –>edit1), create a text file Shortcuts.txt, and write the following content:S=selectCopy code is saved to the ~/plugins directory under the PL/
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.