The problem occurs: The data found from the Oracle database is displayed locally ????, Garbled.
Solution Process: after the previous articleArticleAn Oracle client is installed locally, and this error is reported when you connect to the server
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
---------------------------------------------------------------------------
-------------------
Create or replace package packtest
As
Type string_array is table of varchar2 (21) index by binary_integer;
Type int_array is table of number (4) index by
A function is a program with zero or multiple parameters and a return value. Oracle has a series of built-in functions in SQL, which can be called SQL or PL/SQL statements. functions are mainly divided into two categories: single-row functions and
This article describes the concepts and operations of partition tables from the following aspects: 1. table space and Partition Table concept 2. table Partition Function 3. advantages and disadvantages of Table Partitioning 4. table partition types
1.
Select deptno, row_number () over (partition by deptno order by SAL) from EMP order by deptno;
2.
Select deptno, rank () over (partition by deptno order by SAL) from EMP order by deptno;
3.
Select deptno, dense_rank () over (partition by deptno
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-
There are two ways to execute dynamic SQL: dbms_ SQL package and local dynamic SQL.
7.1 dbms_ SQL package
Powerful functions and a large number of functions are rarely used.
7.2 local dynamic SQL
7.2.1 execute DDL statements
Begin
Advanced PL/SQL
The dbms_output package is a package that can be displayed on the screen using SQL * Plus. The utl_file is a server-side built-in read/write file.
Package, which can read and write data on the server side. text_io is a client read/write package
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
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
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
Oracle 10g installation in win7, select advanced options, prompt program abnormal termination, an unknown error occurs
Modify Oracle 10g \ database \ stage \ prereq \ dB \ refhost. xml
In the
Go to the install directory and find the oraparam.
The default database character set is al32utf8.The company uses the zhs16gbk character set, so the character set is changed using the following method:
Sqlplus sys_name/sys_password as sysdba shutdown immediate; Startup Mount alter system enable
The following are some of the minor problems I encountered while using nhib.pdf. Record them and use them as notes!
1. Auto-incrementing sequence and strict type MatchingHBM. the generator class in the XML configuration file can be set to "increment"
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