With as syntax – for an alias with the TMP as (SELECT * from Tb_name)– for multiple aliases with the TMP as (SELECT * from Tb_name), TMP2 as (SELECT * from Tb_name2), Tmp3 as (SELECT * from Tb_name3), ...
123456789
--相当于建了个e临时表with
1. According to rowID to divideSELECT * from T_xiaoxi where rowID in (the Select Rid from (select RowNum rn,rid from, select rowID rid,cid from t_xiaoxi ORDER BY cid Desc) where rownum9980) Order BY cid Desc; execution time 0.03 seconds 2.
1, grant to database user (object to User table) Grant privilege[, ...] On object[, ...] to {public | GROUP group| Username}privilege:select: Querying insert: Inserting update: Updating delete: Deleting Rule:all: All Grant Select,insert,update on
Busy work every day, ah, really busy, today in the work of a small problem, is the oracle of the user name, Oracle does not seem to provide a statement such as rename, so can only directly change the lower view, this is my experimental resultsSELECT
Calculate the CheckpointLag of the rep process of the OracleGoldenGate (OGG) destination end.
This article is original. For more information, see the source.It is estimated that the Checkpoint Lag calculation method of the rep process on the target
CentOS6.5 Oracle11G-R2 installation, uninstall
CentOS6.5 Oracle11G-R2 installation, uninstallResources (including all my installation processes, system backup files): http://download.csdn.net/detail/attagain/7700437
I. Hardware requirementsCommands
Query the size of a table with a lob field in the Oracle databaseNote: Because the lob field has an independent lob segment for storage, for a table with a lob field, you cannot only query dba_segments.The following scripts are from:How to Compute
In the Oracle11g environment, use utl_smtp to create a storage process for sending emails
If there are too many email storage processes on the internet, I will not forward them. Let's make a simple example;
Create or replace procedure Send_mail
Oracle uses the instr or like method to determine whether the string is contained. oracleinstr
The first thought is contains. The usage of contains is as follows:
select * from students where contains(address, 'beijing')
However, a condition for
Oracle uses the row range query to retrieve 4 to 10 rows and oracle10 rows.
Rownum cannot be used directly. aliases must be converted after query.
Take the EMP table as an example and take 4 to 10 rows:
Select * from (select rownum id, t. * from
[Oracle] pl/SQL -- paging process demo
This SQL statement can be used to query records at specific locations in a table.
-- Query Method: select * from (select t1. *, rownum rn from (select * from books) t1 where rownum 2;
-- Use paging write
Dbca create database ORA-01034ORACLEnotavailableSYMPTOMS
When using dbca to create a database, when all the parameters are set up, the ORA-01034 ORACLE not available,
For example
CAUSE
There's a script in ORACLE_HOME/sqlplus/admin which is
Common oracle functions (2)
1. TRIM ([{LEADING | TRAILING | BOTH} [trim_character] | trim_character} FROM] trim_source) FunctionParameter: If leading is specified, the oracle database removes any starting characters equal to trim_character.Parameter:
Several ways to modify the table name in oracle, and several ways to modify the table in oracle
Answer1:
Alter table old_table_name rename to new_table_name; (uppercase: System Command)
Answer2:
SQL> select tname from tab;TNAME-------------------
Step for creating the auto-increment ID field in the oracle database, oracle Field
The steps for using the auto-increment ID field in oracle are complex and summarized as follows:
-- Create a table
Create table advice (id int not null, active int
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