I. Differences in data types between Oracle database and other databases1, Number: formerly int, Oracle:number: Unqualified, Numbers (3): 3-bit characters, 3 bytes. Number (6,2): 4-bit integer, 2-bit decimal, 6-byte length. English numerals are one
Two classic examples of Oracle triggershttp://blog.csdn.net/justdo2008/article/details/4137779"Case One"Topic:--Trigger:--Add employee information, serial number as auto number (generated by sequence),--and determine if the wage is less than 0,
If you want to define a variable that has a type that is consistent with the data type of a variable or a column in a database table, you can use%type to implement it.If you want to define a variable of a record type that is consistent with a table
1 /*The default DB instance here is ORCL, creating a permanent tablespace for ORCL, zone custom allocation, and automatic management of segments*/2 CREATEtablespace ORCLTBS01 datafile3 'D:\app\darkdog\oradata\ORCL\ORCLTBS01_1.DBF'SIZE 50M;4 5
Today received a task, need to modify the trigger, because for a long time have not seen about the Oracle trigger, so here through two simple small examples to review the trigger, in case of forgetting.1. Case OneRequirement: Set up trigger, judge
Recently, we often use time functions, write a note here, record your income, and hope to help you.1, for a time such as Sysdate:2015/1/30 14:16:03 how to get only the month and day, at the same time its data type does not change it?The easiest to
Only one entry is left for Oracle to delete duplicate dataSQL statement for querying and deleting duplicate records 1. Search for redundant duplicate records in the Table. duplicate records are based on a single field (Id) select * from table where
Two small examples of oracle triggers
I have received a task today and need to modify the trigger. Because I haven't read about the oracle trigger for a long time, I will review the trigger through two simple small examples here for memo.
1. Case
Introduction to flashback flash back in oracle
1. You must set the undo retention time to be large enough to reconstruct the data that needs to be flashed back.
Alter system set UNDO_RETENTION =
The seconds value is the number of seconds for
Batch import data to Oracle databases
SQL * LOADER is large data
Repository selection method, because it provides the fastest way (DIRECT, PARALLEL ). Now, let's leave aside its theory and use instances to make
You can quickly learn how to use SQL *
Use OCCI to access the Oracle database (3)
Now I am writing the code. I don't really want to write it. Let's compile it with an example.
In the F: \ PProject \ oci \ 32 \ instantclient-sdk-nt-11.2.0.4.0 \ instantclient_11_2 \ sdk \ demo directory,
Oracletrunc () function usage-22. TRUNC (for number)The TRUNC function returns the processed value. Its working mechanism is very similar to that of the ROUND function, except that the function does not ROUND or select the part before or after the
Use OCCI to access the Oracle database (2)
I have introduced a rough idea in the previous article. Here I mainly introduce the specific methods:
Step 1 download the three packages:
Step 2: compress the package (overwrite some files to some
Use OCCI to access the Oracle database (1)
Recently, I want to check the access to the ORACLE database. I searched the internet for it. It is said that in addition to ADO and OLE DB, OCI is a common method, but OCI is in C-Style, in C ++, there are
Oracle Data Type-1In Oracle databases, each relational table consists of multiple columns. Assign a specific data type to each column to define the data type that will be stored in this column.
1. CHARA maximum of 2000 characters or bytes can be
Oracle will you really use the ltrim/rtrim function?
The common usage is to remove spaces. How many people do not know that they can actually remove spaces? It has the ltrim () and ltrim (x, y) methods.
------- Remove spaces on both sides, left
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