Basic Data Types of Oracle 9i
Data Type
Description
Char
Fixed-length bytes data with a maximum length of 2 kb
Nchar
Data of UNICODE character set with a fixed
1. After testing, the following method is passed:
Select * from(Select Table name. *, rownum as con from table name where rownum )Where con> = N;
2. Refer to other online methods
SQL/Oracle Method for retrieving records from MB to
Summary:
There are now two tables: person and department. The person table is a sub-table, and the department table is a parent table, which is associated with the foreign key deptid.
Now you need to insert data in batches:
Each time a
call the stored procedure for data insertion:
// Call the stored procedure to insert a record bool cdbtestappdlg: insertrecord () {cadoparameter param1, param2, param3; cadocommand comm; If (conntodb () {comm. setconnection (m_pconnection);
Problems encountered at work:
1. There is a custom dictionary table: mdl_class_js
This table stores the names of many other tables (called resource tables). (In the mdl_class_js table, fields: table_name are used to represent these resource
Oracle RACVs SQL Server article 6: data dependent routing (also known as"Data splittingSolution ")
In the previousArticleWe have already talked a lot about SQL Server horizontal scaling. Today we will look at the last solution. In fact, there are
Processing date in Oracle
To_date formatDay:Dd number 12Dy abbreviated FriDay spelled out FridayDdspth spelled out, ordinal twelfthMonth:MM number 03Mon abbreviated MARMonth spelled out MarchYear:YY two digits 98Yyyy four digits 1998
The time
Reading Notes db file scattered read DB, db file sequential read DB, free buffer waits, log buffer space, log file switch, log file sync
The view v $ session_wait can be used to view the current wait events of the system and the information about
Many people know that the Oracle listener has always had a security risk. If security measures are not set, users who can access the listener can close the listener remotely.
Example:
D:> lsnrctl stop eygle
LSNRCTL for 32-bit Windows: Version 10.2.0.
After the CentOS system is installed, you can start the installation of Oracle 11g. First, you must make some preparations.
Use commands to create an Oracle account and corresponding user groups
Create a folder and grant the Oracle user
SQL code
-- Ref cursor
/*
Show multiple rows of a cursor
Implicit cursor data manipulation language DML and single-line select into statement
1. Define a cursor
Select result set statement corresponding to the cursor
CURSOR cursor_name IS
How to count the number of Chinese characters in a field in data (ORACLE)How to count the number of Chinese characters in a field in the data table www.2cto.com dept has the following data:In Oracle, length is the length of characters, lengthb is
Oracle data migration solution data migration generally refers to transferring data from one place to another. Main application scenarios include: Building a test environment based on the formal system, copying data from the Intranet to the Internet,
Almost all changes that occur in oracle online redo log files are recorded in online redo log files. oracle uses these redo log groups to restore the database, therefore, they are very important. The main work of online redo log files is to back up
Comparison of the Efficiency of three types of cursor loops in pl/SQL mainly compares the following three formats:
1. one open cursor is processed; loop fetch cursor INTO variable; exit when condition; end loop; CLOSE cursor; 2. batch Processing of
Oracle TABLESPACE quota details when you CREATE a USER: SQL> create USER user01IDENTIFIED BY oracleDEFAULT TABLESPACE tbs1TEMPORARY TABLESPACE tempPROFILE defaultSQL> GRANT create session, CREATE table TO user01; while executing the command to
The following describes how to debug a function. Other debugging operations are the same.
1. debugging location
In general, there are two places to debug the program in pl/SQL Dev:
1). New-> test window:
2) Right-click the program to be debugged
☆Retrieve all table names and column names of the databaseSelect name from sysobjects where xtype = 'U'Select name from syscolumns where id = (select max (id) from sysobjects where xtype = 'U' and name = 'table name ')☆Recursive Data QueryRecursive
1. Create a tableCopy codeThe Code is as follows:-- Create tableCreate table test(Dm1 char (3 ),Dm2 char (3 ),Mc1 nvarchar2 (20 ),Val nvarchar2 (20))
2. Fill in the following data:
DM1
DM2
MC1
VAL
101
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