numeric function:
Absolute value of ABS (m) m
MoD (M,n) m is the remainder after the n is removed
Power (M,n) m's n-th-side
Round (M[,n]) m rounded to n digits after the decimal point (n defaults to 0)
Trunc (M[,n]) m truncates the value of n-bit
Starting with Oracle 12C allows different types of index to be created on the same column for performance tuning, with different types of index mainly including (B*tree vs bitmap,local vs Global)ORACLE 11G
The code is as follows
Copy
The simplest and fastest deletion
Here's what it takes to be efficient when it comes to multiple table cascading deletions to large amounts of data and the complexity of the relationships between tables, and simple direct deletion comes fasterAs in
American_america. WE8ISO8859P1, this character encoding is a Western European character encoding, corresponding to the. NET is iso-8859-1 character encoding, so only need to change to the system's default character encoding on the line.
Workaround:
Because the hand is cheap, the production data was deleted by me.
With the DELETE statement, and it's quickly returned to the commit.
The following two statements:
The code is as follows
Copy Code
ALTER TABLE
See a friend today. A batch command backup table when doing a database backup, what a convenient thing to do in Oracle 10g Oh, let's see.
Description
1. I used the Oracle 10g database, which was derived from the EMP and Dept tables under Scott's
Oracle Connection appears ora-12154
After the RAC is configured, two nodes can ping with tnsping, but the following error occurs with the Sqlplus connection, and I don't know where the problem is.[Oracle@rac2 admin]$ lsnrctl Status
Lsnrctl for
Oracle ALTER STATEMENT usage
Sql>Sql> CREATE table bar (n number);
Table created.
Sql>Sql> ALTER TABLE Bar add c char (1);
Table Altered.
Sql>sql> drop table bar;
Table dropped.
Sql>
Add a Date field
Sql>Sql>
exists and in efficiency in Oracle and its usage
Replace not in with not exists
select * from Tsp_product p where not exists (select "From Tsp_orderitem I where p.id=i.product_id)
SELECT * FROM Tsp_product p where ID isn't in (select
Whether the instrumentation field in Oracle includes Chinese charactersSELECT *From (SELECT ' ABCdef ' AA dualUNION ALLSelect ' ABC what is this de ' AA from dualwhere AA <> convert (aa, ' us7ascii ', ' ZHS16GBK ');
Aa
--------ABC what is this
Copy code code as follows:
Declare
Cursor C1 is select * from T_depart;
V_depart T_depart%rowtype;
Type V_code_type is table of T_depart.depart_code%type;
V_code V_code_type;
Type V_name_type is table of T_depart.depart_name%type;
V_name
After executing the following SQL statement, we can get the SQL statements that we really want to execute, and then copy the SQL statements that the programs print out to execute.
--delete Tables Delete data table
The code is as
Example 1
The code is as follows
Copy Code
–select * from TMN_ZHBG ORDER BY id DESCSelect ID, mc,fs,class,sum (FS) over (the order by Fs,id) continuous accumulation, sum (FS) over (order by FS) continuous accumulation of
After looking at a number of paging stored procedures, it was found to be for SQL Server, without Oracle, so I wanted to write a stored procedure about Oracle because the database I used was Oracle.
---------------------------------------------------
Date function1. Select Sysdate from dualQuery the current date2. Select Months_between () from dualQuery the month difference of two dates3. Select Add_months (sysdate,1) from dualAdd one months to a date4. Select round (1.554,1) from dualRounding
1. Install Oracle Oracle software is free and can be downloaded to the website to download the appropriate installation package. However, if commercial use is required to purchase license. Official online for various platforms, both 32-bit and
1. Install Oracle Oracle software is free and can be downloaded to the website to download the appropriate installation package. However, if commercial use is required to purchase license. Official online for various platforms, both 32-bit and
1. When creating a database, catproc must be run; otherwise, the following character set errors may occur when using rman:RMAN-00554: initialization of internal recovery manager package failedRMAN-04005: error from target database: ORA-06553:
Asp tutorial. net c connect to oracle database tutorial and display dataThis section is a connection between the asp.net tutorial and the oracle database, and displays all the data in the data.Data source = torcl; user id = myusername; password =
At the end of June, we received an emergency support request from a customer. The customer's database was not long ago unable to start after the database was restarted due to a power outage in the data center.We remotely analyzed alert log and kfed
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