Transferred from: http://blog.sina.com.cn/s/blog_6bccf0360101hzsh.htmlWhat is the role of 1.spool?Spool's role can be described in a sentence: in Sqlplus to save or print query results.2.spool syntax and usage examples at Oracle 9i, 10g, and
ViewWhat is a view?A view is also known as a virtual table, which is a fictitious table, which is a logical representation of a set of data.The view corresponds to a SELECT statement, and the result set is given a name, which is the name of the view.
The set operator is specifically used to merge the results of multiple SELECT statements, including: Union,union All,intersect,minus. When using the set operation function, ensure that the data type and number of fields in the dataset are the
[Email protected]> CREATE TABLE emp_1 as SELECT * from EMP; --Schedule table created. [Email protected]> CREATE TABLE dept_1 as SELECT * from dept; --table created for main tables. [Email protected]> ALTER TABLE dept_1 add constraint pk_dept_1
SELECT * FROM (select A.id,a.oacode,a.custid,a.custname,a.xsz,a.salename,a.communicationtheme, A.communicationproperty,a.communicationtime,a.productmanager,a.creator,a.createdate from Technology_flow a where A.oastate= ' normal end ' union select
First, the comparison of the original scheme: Trigger/job/snapshot +dblink way, can be synchronized and timed refresh;Two different database servers, from one database server a user to read another database server B under a user's data, can be done
Oracle Main type functions:
Single-line function: You can enter only one row of results and return a result. Common single-line functions are:
Character functions
numeric functions
Conversion functions
Date
In most cases, the query optimization strategy built into the Oracle database is still a success, but occasionally confused, even if there is an index, will do a full table scan, you can refer to the following statement, forcing the SELECT statement
1.oracle10g after the download is complete, unzip, select "Setup.exe" to start the installation after the decompression is complete.The 2.oracle home directory location is where Oracle is ready to install, called "Oracle_home", and typically Oracle
National Day seven days leave, decided to calm down to get started Oracle database.Environment: Ocacle 11gThe software installs the package and installs the diagram, everybody may download on my Baidu net disk: Link: http://pan.baidu.com/s/1ntjDEnZ
Sort by calculated column and calculate Column
If you want to sort the calculated columns, you can specify aliases for the calculated columns and then sort them by aliases.
Create a test table:
Create or replace view v ASSELECT 3 AS a, 4 AS B
Solution for oracle adapter connection failure: oracle Adapter
When racle Developer fails to connect, the following error occurs: listener does not currently know of SID given in connect descriptor.
Solution:
In D: \ app \ Administrator \ product \..
Oracle optimization auxiliary SQL statements, oraclesql statements
-- Query the SQL statement being executedSelect osuser computer logon identity,The PROGRAM that initiates the request by PROGRAM,USERNAME: the USERNAME used to log on to the
OracleEBSR12-garbled characters when querying requests whose output format is "text" in Excel
Oracle EBS R12-garbled query of requests whose output format is "text" in Excel
Prerequisites for reproduction:Concurrent Programs whose output format is
Oracle ReportViewer and how to view Oracle ReportsOracle Report Viewer and how to view Oracle Reports today's leaders raised a question, how to view Oracle Report output, how to set the default viewing program as a browser when copying files? I did
How to force oracle select cablingIn most cases, the built-in query optimization policy of the oracle database is still very successful, but occasionally, even if there is an index, full table scanning will be performed, you can refer to the
Oracle storage process, job, view, triggerStored Procedure
Create or replace procedure TestPro (Descerr out varchar2) isbegin select * from test; exception when others then Descerr: = 'interface table data generation failed! '| Sqlerrm; end
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