after the database was established using ORACLE10G, some data was imported into the database and an error occurred the next day when the data table was imported to the database:It's a lot of data. The reason why the data could not continue to be
Scene:oracle11gThe DB server uses sqlplus directly to connect quickly (in seconds), but with the service name, it does not respond for half a day. This issue occurs with a formal, one test.SQLPLUS:XNWZ/XNWZ soonSQLPLUS:XNWZ/XNWZ@orcl half a day, no
title: There is a teacher table T, the field is t_id,t_name; there is a student table S, the field is s_id,s_name; There is also a class table C, the field is T_id,s_id,c_name, where the value of c_name is only ' big class ' and ' Small class ',
create [or replace] PRocedure procedure name (parameter list)AsPlsql Sub-program body;After the stored procedure is finished, the stored procedure is called;There are two ways of doing this:1.exec stored procedure name ();2.pl/sqlBeginStored
1.CREATE OR REPLACE Package Pkg_analyse_common is--Author:yzchen--CREATED:2013/11/26 14:12:43--PURPOSE: public Stored Procedure Package/** Author:yzchen datetime:2013-11-26 14:20:36* DESC: Split string According to P_seq, and return data format,
Oracle's start with ... Connect by implements a recursive query for the tree, but now requires MySQL to implement the same recursive query tree function. This function is I have never used before, so I surf the internet and find some information
This article discusses the mechanisms behind join technology. We know that common table joins have the following kinds of
Descartes Connection
Internal connection
Left outer connection
Right outer connection
Fully connected
DescriptionCopy the following command to the CMD command line to run, file stands for file nameData importImp zzbweb/[email protected] file=e:\zzbweb.dmp fromuser=zzbweb touser=zzbweb rows=yData exportExp Vote/[email protected] file=f:\vote.dmp rows=
With AS syntax– For an aliasWith TMP as (SELECT * from Tb_name)– For multiple aliasesWithTMP as (SELECT * from Tb_name),TMP2 as (SELECT * from Tb_name2),Tmp3 as (SELECT * from Tb_name3),...
123456789
--相当于建了个e临时表withe as(select*
Player Information Table T:Player ID player name on team12344 T-Mac Rockets34323 Kobe LivingPlayer season score Table A, the fields are as follows:ID Player ID season average score01 34323 2013 3402 12344 2013 1203 43221 2013 2304 12344 2014 2005 432
3. External connectionAn outer join is a result set in which a record in a join table that does not conform to a join condition is added on the basis of an inner connection. The outer joins are divided into left outer connection, right outer
%TYPE is used in the declaration of a variable to obtain the field type in the table;%rowtype is used to declare a row type based on a table;Example:%rowtype useDECLARECURSOR Pdct_curIs SELECT * from ProductInfo;CUR_PRODCRD
1. Common functions1) Character functionLower all converted to lowercase select lower (' HELLO ') from dual; -->helloUpper all converted to uppercase Select upper (' Hello ') from dual; HELLOConcat Connect two strings of select concat (' Hello ', '
Index unique Scan: is a large scan for a unique index, it only applies to the destination SQL where the query is equivalent in the Where condition, because the scanned object is a unique index, scanning only the index height so many index blocks are
1. Title: Find employees who pay more than the average salary of the department.Select ename from EMP E1 where sal> (select AVG (SAL) from EMP E2 where E1.deptno=e2.deptno);2. Title: Find employee information for the top three employees in the
Original address: http://www.cnblogs.com/252e/archive/2012/09/13/2682817.htmlQuery 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
Sort by rownum first and then by PAGE, and sort by page by rownum
Today, we suddenly thought that rownum could solve the paging problem. So we did a variety of experiments, found several articles, and finally achieved some results.
The existing
[04] index and SQL statement Optimization1. Index concept
The index of a database is similar to a book directory. The index points to the location where the query content is located (such as the page number in the book), reducing the number of disk
Oracle Data Pump, oracle
To use the data pump, you must first create a database directory
Database directory only allows sysCreate
Common usersAuthorization required
Assume scottThe user is an import user.
SQL>! Mkdir dp_dir
SQL> create directory
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