The following database definitions are available:
Database NameTd_order_liu
Column name:Order Number, product name, display number
The displayed number is not consecutive.1, 2, 3... NThat is to say, it does not directly represent the position
Oracle uses regular expressions without these four functions:
1. Regexp_like
2. Regexp_substr
3. Regexp_instr
4. Regexp_replace
You can probably see what the function name is.
Regexp_likeIt can only be used for conditional expressions,
3.1 Definition of Objects
Objects can be nested, and the number of nested levels is not limited.
1. routine:
-- Create an object header
Create or replace type test_obj is object (
M_name varchar2 (30 ),
M_id number,
Member procedure getname (p_id in
Transaction 6.1
A transaction is a logical unit of work. It consists of one or more data control statements (DML) or data definition statements (DDL. Oracle provides two
Common transactions: Read-only transactions and read/write transactions. Read-
4.1 compile a debug package (routine)
Create or replace package yang_debug
Procedure out (p_comments in varchar2, p_varible in varchar2 );
Procedure erase;
End yang_debug;
Create or replace package body yang_debug
Procedure out (p_comments in
A job is a storage program scheduled to run at a specific time or after a specific event.
9.1 dbms_job package
The dbms_job package submits a job to the job queue. Job Queue is the place where jobs are stored. You can arrange this through Job
Adding the Java engine to Oracle databases is one of the most exciting features of Oracle8i. Therefore:
1) load the Java class and source code into the database;
2) Call Java code in PL/SQL;
3) Call PL/SQL code in Java;
11.1 Oracle Java
1.
1. Select the most efficient table name sequence (only valid in the rule-based Optimizer ).
2. Connection sequence in the WHERE clause... 3
3. Avoid using '*' in the select clause '*'...
4. Reduce the number of database accesses...
5. Use the decode
1. Set linesize 100; set the length
2. Set pagesize 30; set the number of entries displayed on each page
3. Run em a. SQL to open notepad.
4. @ A: run the code in file a. You can specify the file path @ D: a.txt.
5. the conn user name/password is
Thanks for sharing Baidu space yinaddress.
For rownum, it is assigned fromQueryNumber of the row to be returned. The first row to be returned is allocated 1 and the second row is 2. Therefore, this pseudo field can be used to limitQueryThe total
If the table contains data, Oracle cannot modify its data type. However, you can create a temporary column, copy the data of the column to the temporary column, delete the original column, and modify the name of the temporary column. In this case,
Oracle I used 10 Gb. Several problems were found after downloading the client for installation. The record is as follows:
Support for Windows 7
The Oracle10g client only supports Windows 6.0 and does not support Windows 7. You need to make the
View code 1, for example, adds a flow field to a table, which is not empty and unique.
2. The table data volume is 3000000.
3. Assume that the table name is test.
4
5 1. Use cursor.
6 declare
7 cursor c_test is select rowid from test;
8 v_test
In the query, we can note that a query similar to "select XX from table where rownum 1) has a correct meaning, the query "select XX from table where rownum = N" is only valid when n = 1, "select XX from table where rownum> N" (n> 1) such a query
Implement select Top N in Oracle:Since Oracle does not support the select top statement, order by and rownum are often used in Oracle.To query the select Top N.To put it simply, the implementation method is as follows:Select column name 1... column
I. Stored Procedure calls without return values
Stored Procedure:
Create or replace procedure pro_1 (para1 in varchar2, para2 in varchar2)
Begin
Insert into DBO. EMP (ID, name) values (para1, para2 );
End pro_1;
Java code:
Package com. icesoft.
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