In Oracle/PLSQL, the trim function removes all specified characters either from the beginning or the ending of a string.
The syntax for the trim function is: trim ([leading | trailing | both [trim_character] string1)
Leading-Remove
How to repeat table structures and table data in Oracle
1. Copy the table structure and data:
Create Table table_name_new as select * From table_name_old
2. copy only the table structure:
Create Table table_name_new as select * From
From http://9494.iteye.com/blog/48553
Introduction:
Generally, the primary keys of tables increase automatically. in Oracle, sequence-based auto-growth is more suitable.
1. Sequence creation format:
Create sequence nameIncrement by 1Start
Oracle data has a field that stores URLs and contains special characters &,If you want to directly perform a query or insert operation, the problem is as follows:
Execute in PLSQL:
Update userinfo set pageurl = 'test. php? Page = 1 & pagesize = 10
1. The oracleorahome92tnslistener service is not displayed in the computer> Management> service, but the service has started 2, C:/> LSNRCTL start, and an open service error is reported. Then you can view the oracleorahome92tnslistener service in
9i data dictionary DBA view.
485. dba_2pc_neighbors
Contains the inbound or outbound connection information for pending transactions.
486. dba_all_tables
Displays the description of all tables in the database.
487. dba_application_roles
All roles
1. view the Oracle thread: PS-Ef | grep ora
2. What statements are used to query fields?
Select table_name from all_tables;Desc table_name: You can query the table structure.
Select * From all_tab_columns where table_name = '?? '
3. How to query
I haven't written a stored procedure for a long time. In the past few days, the stored procedure has just been used in the project. I didn't expect it to be remembered at all. I just finished it by turning over the previously recorded materials.
--
1. Data Dictionary
The Data Dictionary of Oracle Data is composed of base tables and data dictionary views.
It is usually read-only for users.
Stored in system tablaspace
User SYS
For users, only select
The base table is generated by calling the
I. multiple choice questions
1. When you execute the following query statement:
Select empno, ename
From EMP
Where empno = 7782 or empno = 7876;
In the where statement, which of the following operators can replace or?
A. In
B. ...... And
C. Like
Recently, I learned how to import and export ORACLE data. Many friends say that exp and IMP are used for import and export. However, exp and IMP are not flexible. The format of the generated file is not well controlled when exporting single table
Today, I saw a question raised by a netizen.
See the following table:Indicator number calculation formula indicator value decomposition markA (B + C) + E? 1B 10 0C d + E? 1D 30 0E 5 0
The value of 0 is fixed, and the value of 1 is calculated based
How to determine the IP address of the remote session client in Oracle
A few days ago, a tragedy happened to multiple databases in Daniel's Environment: After we changed the passwords of all database hosts and databases,An Oracle database monitoring
From: http://blog.csdn.net/zhiguo2010/article/details/5737492
In Oracle, the Null String is considered null, and any value compared with null is null. In this way, an exception occurs when comparing two strings. See the following example:
DeclareI
Oracle vs SQL server script syntax
Luo Weifeng 2010-7-9
The original Article is published in the QQ space.
In other words, du boss (which cannot be called now) will use Oracle and SQL Server to write scripts for ** respectively. This is terrible
Oracle Installation notes libxp. so.6: cannot open shared object file
Document category: Database
On the 64-bit operating system redhat5.4, run
/Tmp/OraInstall2010-03-15_10-16-11PM/JRE/1.4.2/lib/i386/libawt. So: libxp. so.6: cannot open shared
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