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
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
Table space name and status information:
Select * From dba_tablespaces;
Table space creation statement:
Select dbms_metadata.get_ddl ('tablespace', ts. tablespace_name)
From dba_tablespaces ts;
---- View the tablespace information of
88. What are the counter numbers of CHR?
ASCII ()
Select char (65) from dual;
Select ASCII ('A') from dual;
89. String concatenation
Select Concat (col1, col2) from table;
Select col1 | col2 from table;
90. How to export the select result to a text
Sys_connect_by_path Function
Since Oracle 9i, you can use the sys_connect_by_path function to display the content from the parent node to the current row in the form of a "path" or a list of hierarchical elements. For example:Column path format
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
First, call the correct stored procedure. Writing SQL statements is no different from other SQL statements. However, pay attention to the location of the returned values. As a result, the stored procedure is first accessed today,A colleague gave me
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.
--
The two machines use disk arrays to store ORACLE data files for RAC. Configure an Oracle service. In this way, the client can configure the Oracle address and service description on the two machines.
JDBC: oracle: thin :@(Description =(Load_balance
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, because the Oracle database backup problem is involved every day in the re-project, and the server runs remotely, it is very time-consuming to manually back up data every day, so I checked some information about Oracle database backup. I
Document directory
What is FRA?
If FRA is full, online logs cannot be archived.
When I started the database this morning and found that the database was not opened, I checked the database status:
SQL> select open_mode from V $
If the control file is lost or damaged, how can this problem be solved?
View the settings in the parameter file:
SQL> show parameter control_files;
Name type value-----------------------------------------------------------------------------Control_
A virtual index is a "false" index, which is defined in a data dictionary, but does not have the corresponding index segment, that is, it does not allocate any storage space. Using Virtual indexes, developersYou do not need to wait for the index to
Oracle has a package named xmldom, which allows you to easily create an XML file. A simple example is provided to generate test. xml. The content is as follows:
Arwen
123
Tom
456
Certificate ---------------------------------------------
Collect and organize online data
1. substr (string, int A, int B)Parameter 1: string to be processedParameter 2: A truncates the start position of the string (the start position is 0)Parameter 3: the length of the string intercepted by B (rather
It takes too long to log on to the database using the default password. If you do not want to remember the password, you can use the following method to change the Sys user password and use sqlplus to log on to sqlplus/As sysdba. After you log on to
Odi: Oracle Data Integrator
Oracle Data Loading tool.
Oracle Odi, like owb, is a data extraction/Data Conversion Tool designed using the concept of E-LT.
The biggest feature of ODI is the concept of a knowledge module ).
Odi Loads files to the
C:/Documents and Settings/Administrator> exp help = y
Export: Release 9.2.0.1.0-production on Wednesday July 28 17:04:43 2004
Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.
By entering the exp command and user name/password,
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