* * The test is for the next test, according to the condition of the increment column as the partitioning condition, according to the time as the partition condition.
Create tablespace test01 datafile ' D:\oracle\oradata\myora\test01.dbf ' size
The SQL statement I used:
Delete from fp_sgfpxxWhere fphm in (select fphm from fp_sgfpxx group by fphm having count (fphm)> 1)And rowid not in (select min (rowid) from fp_sgfpxx group by fphm having count (fphm)> 1)
Delete duplicate invoice
Query and delete duplicate records of the SQL statement 1, find redundant records in the table, duplicate records are based on a single field (ID) to determine the select * from table where Id in (select ID from table group Byid have COUNT (ID) > 1
1. select * from emp;
2. select empno, ename, job from emp;
3. select empno number, ename name, job from emp;
4. select job from emp;
5. select distinct job from emp;
6. select distinct empno, job from emp;Note: Because employee numbers are not
Welcome to the Linux community forum and interact with 2 million technical staff. 1. Randomly query a data method. Method 1: SELECT * FROM 'table' ORDERBYRAND () limit1. Evaluation: not recommended, the efficiency is very low. It is explained in the
I believe that the 99 SQL statements are handled, and the basic Oracle test is just like playing (the most comprehensive and most typical entry-level Oracle query statements in history)
1. select * from emp;2. select empno, ename, job from emp;3.
With the recovery of the network economy, more and more websites are emerging. With the mining of script vulnerabilities, hackers are becoming increasingly rampant and become increasingly younger and foolish. "You only need to use a tool to hack the
-- Process duplicate table records (query and delete)/*************************************** **************************************** **************************************** *******************************1. Repeat records with the same num and
Main Library Query minimum SCN information:Sql> Col CURRENT_SCN for 999999999999999Sql> SELECT CURRENT_SCN from V$database;Select min (FHSCN) from X$KCVFH;Select min (F.FHSCN) from X$kcvfh F, v$datafile Dwhere F.hxfil =d.file#and d.enabled! = ' READ
A random query of a data
Method One: SELECT * from ' table ' ORDER by RAND () Limit 1
Evaluation: Not recommended, very inefficient, as stated in the official documentation: the Order BY and Rand () are used to scan the table multiple times,
--Processing table duplicate records (query and delete)/************************************************************************************************************** ****************************************1, Num, name of the same duplicate value
believe that the 99 SQL, Oracle Basic written test is just like playing (the most complete, the most classic entry-level Oracle query statement)1. Select * from EMP;2. Select Empno, ename, job from EMP;3. Select empno number, ename name, job work
How to Use RMAN Incremental backup to restore data guard log gap (log disconnection), rmangapThe minimum scn information of the master database:SQL> col current_scn for 999999999999999SQL> SELECT CURRENT_SCN FROM V $ DATABASE; Select min (fhscn)
Mysql implements random query of bitsCN.com
1. randomly query a piece of data
Method 1: SELECT * FROM 'table' order by rand () limit 1
Rating: it is not recommended and the efficiency is very low. it is described in the official document that Order
1. Select * from EMP;2. Select Empno, ename, job from EMP;3. Select empno number, ename name, job work from EMP;4. Select Job from EMP;5. Select distinct job from EMP;6. Select distinct empno, job from EMP;Description: Because the employee number is
Sub-query refers to a complete query, nested in a number of different functions of small queries, so as to complete a complex query a form of writing, in order to let the reader more clearly understand the concept of sub-query.Sub-query returns
-- Process duplicate table records (query and delete)
/*************************************** **************************************** **************************************** *******************************
1. Repeat records with the same num and
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.