After exploration and practice, I wrote my solution below:
Note:
The version of my Oracle client is Oracle 9i. It cannot be installed by default when installing the client. You must customize it. Then select all oledb-related content and install it,
It is very important to develop a database application and select a good database. This article compares three types of databases: SQL Server, Oracle, and DB2. It provides some reference for you to select a database.
Openness
SQL ServerIt can
1. Su-Oracle is not required. It is suitable for use without a DBA password. You do not need a password to enter the sqlplus interface.
2. sqlplus/nolog, sqlplus system/manager, or./sqlplus system/manager @ ora9i;
3. SQL> connect/As sysdba;
How can we insert the data obtained in Table A into another table B?
(1) For tables A and B with the same structure [number of fields, type of corresponding fields, etc.], you can use
Insert into B select * From;
Insert into B (field1, field2
Single-record functions in SQL
1. ASCII
Returns the decimal number corresponding to the specified character;
SQL> select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') space from dual;
A A zero space
------------------------------------
When accessing Oracle, the client (or Web Server) needs to install an Oracle client, which is a bit uncomfortable. SQL server does not need to be used. MySQL can have at most one mysql. Data. dll. I have been searching for a relatively slim client
First, create a stored procedure get_clob:
T_name: name of the table to be queried; f_name: name of the field to be queried; u_id: Primary Key of the table, query condition; l_pos: Start position of the truncation; l_amount: truncation
I. Positioning
Oracle has two major parts: development and management. Development is mainly about writing stored procedures, triggers, and so on, as well as using Oracle's develop tool for form. Similar
Program Personnel, who need to have strong
I. There are two types of auto-incrementing self-segments for tables. One is that different tables use their respective sequence. The method is as follows:
1. Create a sequence in Oracle sequence first
Create sequence seq_idminvalue 1
Function:
1. Allow/restrict table modifications
2. automatically generate a derived column, such as an auto-increment Field
3. Forced Data Consistency
4. provide audit and logging
5. Prevent invalid transaction processing
6. Enable complex business
For example: 2000-1-1 ==> 2000-01-01, 2000-01-1 ==> 2000-01-01, 2000-1-01 ==> 2000-01-01
I used to write a function/procedure script and a large number of if else scripts...
This time, we accidentally discovered that Oracle10g already supports the
The securefile function is a completely re-designed implementation of the large object (LOB) storage format in Oracle 11g. The original lob storage format is now called basixfile, and it is still the default storage method, however, the securfile
The following information is from the Internet. You can paste it and save it for future use.
Character function -- returns the character value
All these functions receive parameters of the character family type (except for CHR) and return character
Recently, many people in the group have discussed oracle Security Issues. Today I have found some materials to learn more.
Obtain the attributes of the current Oracle SESSION (useful for determining the SQL Injection environment)
The SYS_CONTEXT
//************************************** *********************************// Function name: of_zy_yzfy for n_medicare_minihis// Function Description: Submit the doctor's advice when the doctor's advice is entered// Function parameters:// 1.
Conversion of date and time in c shell perl php: seconds and human readable date scalar localtime and seconds since '00: 00: 00 1970-01-01 UTC'
Scalar localtime 26-byte string and seconds since '00: 00: 00 1970-01-01 UTC'
(The number of seconds
The ORACLE tutorial is: Oracle Data Table Partitioning policy. This article describes the table to be partitioned by the hospital information system through statistical analysis. Select the partition key for the table to be partitioned, that is,
The ORACLE tutorial is: Comparison between Oracle and SQL Server in enterprise applications. My company not only owns Oracle databases but also SQL Server databases, so I often encounter two problems that people ask me.
The first is usually "can
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.