You can easily create a general script by replacing the variables.
Code:
Insert IntoEmployees (emp_name, emp_age, emp_dept)Values('& Amp; empname',&Empage,&Empdept)"&" Is used to add identifiers to replace variables. Note that if the column data
1. data transmission between tables
1) ExploitationInsertTransmit data
Insert into test1 (select name2, age2 from Test2 );
From the operation above, we can see thatSelectAdd a batch to a tableAdd data, but note that the data type should be
To avoid SQL-injection, all the update, insert, delete, and select statements are written in the form of parameters.
Update tablename set filedname =: fd1 where id =: ID
ID: The Oracle type is dbtype corresponding to varchar2.String
The
1. Database Operations1. Database ConnectionThere are two types:First, the old method (relatively rigid, not conducive to flexible operations) is connected using the oracleconnection class.String mysqlstr = "User ID = xal; Data Source = xal;
There is a seemingly Nb built-in function wm_concat in Oracle, which can easily implement the "Row-to-column" function (you can search for related usage and find a lot of information)
Today I accidentally found a problem:
In different Oracle
In Oracle databases, the constraints have the following two parameters:Initially (initially immediate or initially deferred)Deferrable (deferrable or not deferrable)1st parameters, specifying the validation time of the constraints by default (at the
1. Set
There is a concept of intersection, difference, union, and population in mathematical operations, and this concept also exists in data queries, which has the following connection symbols:
Union:Connect two queries, the same part is
(From http://lishiran.itpub.net/post/28911/288984,li Shi's house)
Redo --> undo --> datafileWhen a record is inserted, the table and undo information will be put into Redo, And the redo information will be put into the hard disk before commit or.
Oracle Database Version: 10.0.2
Server hardware configuration requirements
CPU: P4 1.6 GHzRam: 1 GBHD free space: 10 GBNic
Operating System Platform requirements
Windows 2 k pro, Windows 2 k SVRWindows XP Home, Windows XP ProWindows
When you want to drop a table, if the action to delete the table will cause a conflict between trigger and constraint, the system will receive an error warning and will not allow execution .. For example, if you have an employee basic data table,
Delete a user
Drop user user_name cascade;
Create a tablespace
Create tablespace data01Datafile '/Oracle/oradata/DB/data01.dbf' size 500 mUniform. Size 128 K; # specify the partition size as 128 K. If not specified, the default partition size
If reprint please indicate the source: http://www.cnblogs.com/xd502djj/archive/2010/08/18/1802130.html
Although I used to delete repeated records in the previous article, it was not bad, but I encountered a heavyweight large table, and I
I in database transactions (acid) refers to isolation (isolation): Unfinished (that is, uncommitted) transactions must be invisible. During a transaction, only one session that executes the transaction can see the changes.
Oracle uses restoration
The following table lists the Oracle9i databases:
The commit operation does not forcibly write the database buffer content to a file. After the commit operation, the server process will release the lock for related resources only after prompting
Starting from 9i, Oracle provides an operation to avoid transaction exceptions due to space error, that is, resumable. generally, DBA often ignores the requirements for space resources in daily work, such as temp, undo, and data space required by a
1. User failure During the last installation of a railway system, the Oracle 11g database was found to have a user expiration date. Check the relevant ORACLE data and check whether there is such a problem. [Cause/trigger factor] It is determined
Recently, the disk space of the Oracle server in the development environment is full, so I began to delete things everywhere and finally delete the files. I started to think about ORACLE data files again, due to the lack of knowledge about Oracle,
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