From Oracle database products, from oracle2.0 (without 1.0) to oracle7.3.4, it is only a simple version number. However, from oracle8, database product feature identifiers such as Oracle8i and 9i appear, internet stands for "I", indicating that this
Purpose: return the specified data column values of multiple records in a data table at intervals of commas.
Select decode (v_value_type, '01', wm_concat (order_code ),'02', wm_concat (to_char (order_date, 'yyyy-mm-dd ')),'03', wm_concat (TRIM
Recently, an array is used in a process to store a series of values.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 Declare Type ln_mon_plan_value_varray Is Varray ( 20 ) Of
Oracle's solution is to_date () and 24-hour notation and the display of MM minutes:
1. When Oracle's to_date function is used for date conversion, many
Program Like me, the engineer may intuitively convert the format "yyyy-mm-dd hh: mm: SS", but it
Oracle series: ref cursor
In the Oracle series: cursor (see:Http://blog.csdn.net/qfs_v/archive/2008/05/06/2404794.aspx)Think about it: How to pass a cursor as a parameter? To solve this problem, you need to use ref cursor.
1. What is
Yesterday I just transferred the database from sqlserver to Oracle, and today when the use of the problem, the insertion of data is no problem, the problem is in the update, the prompt: ORA-01036: Invalid variable name/Number
The answers to this
Oracle cursor usage
The following example describes the complete declaration, opening, and extracting of the closure operation and the passing of the cursor parameters.
Declare
Deptrec Dept
%
Rowtype;Dept_name Dept. dname
@ Type
Database links in Oracle can be used for cross-database queries, but problems often occur during use, often failing to test inexplicably. In fact, pay attention to the following issues to avoid many such problems.
1. It is best to set the link to
Problem Discovery
6
Month
24
Day
Afternoon, found A Local ClientProgramAn error occurred while inserting data. The reason is the table. B The constraint becomes "?", Because it contains Chinese characters, the data
Oracle TextText Retrieval: (you must first createContextOrCtxcatIndex, and then as follows) (you can alsoFromAdd, Score (10)To observe the score of the retrieved item)
1.Exact match of wordsSelect CBID, title (Column name) From emergency (Table
Oracle substr function usageObtain the substr (string, start_position,
[
Length
]
)For example:Substr (
'
This is a test
'
,
6
,
2
) Wowould
Return
'
Is
'
Substr (
'
This is a test
'
,
6
) Wowould
from http://edu.chinaz.com/Get/Database/Oracle/059301006107324955.asp single record function in SQL 1. ASCII returns the decimal number corresponding to the specified character. SQL> select ASCII ('A') A, ASCII ('A'), ASCII ('0') zero, ASCII ('')
Which of the following conditions is used for where comparison? :
Equal to: =, , >=, <>
Including: In, not in exists, not exists
Range: between... and, not between... and
Matching Test: Like, not like
Null test: Is null, is not null
Boolean links:
Method 1
Step 1: log on to SQL/plus to execute the command (no sequence is available)
Set Time on; (Note: Enable time display)Set autotrace on; (Description: Enable Automatic Analysis Statistics and display the running results of SQL
■ SQL statements and descriptions for creating data files Create tablespace to create a tablespace and its data file create temporary tablespace create a temporary tablespace and a temporary data file (temporary data file is a special type of
■ Log Switching SQL> alter system switch logfile; ■ Add a redo log file groupSQL> alter database add logfile2 group 4 ('/export/home/opt/product/10.1.0.3.0/oradata/ldfsys/redo04.log') Size 10 m; ■ Add members of the redo log file groupSQL> alter
■ ListenerProgram # LSNRCTL start ---> Start# LSNRCTL Stop ---> stop# LSNRCTL status ---> Status# LSNRCTL help ---> help ■ One routine can only access one database, and one database can be accessed by multiple routines at the same time.A routine
Map a table on the remote server to a local materialized view using the following statements:
-- -- Create a test environment dblink: Create Database Link lnk connect To User1 identified By Pwd1 using ' (Description = (address_list =
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