Fuzzy queries in Oracle rely on the like operator.
Now let's take a look at some specific problems in the use of the like operator.
%: 0 or multiple characters
_ (Underline): represents a character
For example:
(1)
Select ename from
Because the company's database uses Oracle, the operational data is now switched to Oracle. I am responsible for the processing of some website data, so I use oledb to connect to the data in the header. This is done by modifying and referencing the
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
For Oracle database operations, the command line method is used, and all commands are completed using sqlplus. For SQL Plus, there are two forms.
One is DOS-style sqlplus: sqlplus.exe;
The other is Windows-style sqlplus: sqlplusw.exe;
Database Backup is one of the most important tasks in the whole project operation.
I. Data Export and Import
Data export and import are for a user's backup operations, which can be completed as follows:
1. Data Export
Create a folder
Basic PL/SQL
PL/SQL statement Block
Set
Serveroutput
On
Size
10000 -- set the buffer
Declare
X
Varchar2
(
10
);
Begin
X:
=
'
This is
'
;Dbms_output.put_line (
'
The value of X is:
'
|
X );
End
;
Oracle inserts query data from one table into another table
Insert
Into
T_idd_event_history (detectorcode, detectorname, loopcode, subeventtype, description, occuretime, releasetime)
Select
T. detectorid, T. detectorname, T. loopcode,
Http://www.blogbus.com/public/tb.php/1216089
The JRE of oracle9i is 1.3, which occupies the first item of the Environment Variable path after installation. The solution is to move this item to the last item of path.
If you use dbunit to add data
I. View
Among all the SQL syntaxes I have learned before, query operations are the most troublesome.ProgramIf developers waste a lot of effort on writing queries, it will certainly affectCodeTherefore, a good Database Designer not only designs
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 wmsys. wm_concat function, which uses the ',' link character.
Example:
SQL> Create Table idtable (ID number, name varchar2 (30 ));
Table created
SQL> insert into idtable values (10, 'AB ');
1 row inserted
SQL> insert into idtable
I used to use AR to access SQL Server and work well. recently, I switched my database to Oracle 8i. I encountered several minor problems when using AR for access. Now I want to provide the Problem description and solution, and hope to provide some
To_date format (take time: 13:45:25 as an example)Year:YY two digits two-year display value: 07YYY three digits: 007Yyyy four digits four-digit year display value: 2007Month:Mm Number: 11Mon abbreviated Character Set indicates the displayed value:
Directly call the stored procedure in Oracle to complete the paging of the table. The code is highly closed and efficient. The following is the C # paging code, including the Oracle database.
PLSQL code of the stored procedure.
// Program call
The latest project will be cascaded with the data generated by Oracle, marking:
Database:Our project: SQL2000 (independent server -- win2003)Customer: Oracle 9i (independent server -- win2003)Requirements:When the specific data in our project
It took another morning to configure this item and write it to reduce your detours. My environment is WINXP SP2 + python2.4 + Oracle 8i.
[1] first download the driver: (cx_oracle)Http://www.python.net/crew/atuining/cx_Oracle/But pay attention to the
1. Search for all indexes of a table (including index names, types, and columns ):
Select T. *, I. index_type from user_ind_columns T, user_indexes I where T. index_name = I. index_name and T. table_name = I. table_name and T. table_name = table to
Oracle Database Lite version: 10g 10.3.0.1.0
Server hardware configuration requirementsCPU piII 1 GHzRam 256 mHD free space 500 mNic
Operating System Platform requirementsWindows 2 k pro, Windows 2 k SVRWindows XP Home, Windows XP ProWindows 2K3
Utl_file.fopen in the utl_file package provided by Oracle is responsible for opening a file.
Utl_file.fopen (location in varchar2, filename in varchar2, open_mode in varchar2) return file_type;Location is the path parameter,Filename is the file
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.