I.Oracle temp Table knowledgeIn Oracle, temporary tables are divided into two sessions (session level), TRANSACTION (transaction level), and session-level temporal table data exists throughout the session until the session is closed; Temporary table
1. Show jobs with average salary of >2000Select Job,avg (SAL) from EMP Group BY job have avg (SAL) >2500;2. Calculate the salary above 2000, the average salary of various positions is more than 3000 of the position and average salarySelect Job,avg
After the Oracle installation is complete, find the SQL plus run in "Start" and ask for an account number and password to connect with the system/password.1. Oracle has a default Scott account password Tiger, which is connected using this
GrammarSelect ... from tablewhere filter conditionsThe constraints of the root node of start with query resultsConnect by connection conditions;ExampleCREATE TABLE Test (ID number,parent_id number,Name VARCHAR2 (100));Assume that the root node ID is
--display dates in a specific formatSelectEname,to_char (HireDate,'YYYY "Year" MM "month" DD "Day"') fromEMP;--Exclude Duplicate rowsSelect distinctDeptno,job fromEMP;SelectDeptno,job fromEMP;--handling NULL using the NVL functionSelectename,
"IT168 comment" In many cases, we will need to insert a large amount of data into a table, and want to complete the work in as short a time as possible, here, and you share some of my usual experience in doing a lot of data insert.Premise: Before
Data backup, data deletion, data restoreConnect to the database to see all the tables below the Scott userData backup (data export) to enter the export file path and file name (file extension can be entered or not input)After the export is
1. Turn on 10046 trace eventsAlter session SET Events ' 10046 Trace name Context forever, Level 12 ';If you want to make it easier to identify the trace file, you can set the trace's identity before opening the eventAlter session set
1. Start simpleDECLAREName VARCHAR2 (20);BEGINSelect First_Name into name from Hr.employees where employee_id=&no;Dbms_output.put_line (name);EXCEPTIONWhen No_data_found ThenDbms_output.put_line (' The employee does not exist! ');END;/2.
Oracle Database basic learning (5) Multi-Table query, oracle Database
Multi-Table query:Two or more tables are required for the query result. Multi-table join is required to generate multi-Table query.
1. Internal Connections (equivalent
Chinese data garbled by sqlldr
When data is installed on the test machine, all Chinese fields are changed ???????, Character Set ProblemsChange UPDATE sys. props $ set value $ = 'we8iso8859p1 'where name like 'nls %' and value $ = 'zhs16gbk'; commit;
Create a tablespace in oracle and assign user permissions.
1. create temporary tablespaces (temporary tablespaces are mainly used for sorting operations in the database [such as creating indexes, order by and group by, distinct,
Oracle 12C database imported to 11 GB
The packages backed up from oracle 12c (expdp) are restored to 11 GB. We all know that there will be compatibility issues.
Sure enough, an error is returned:ORA-39142: Version 4.1 (in the dump file forks. expdp)
Oracle Study Notes series ------ usage of basic functions of oracle basic operations, oracleexists usage
-- CREATE an accout account table create table account (id NUMBER (9) not null, recommender_id NUMBER (9), login_name VARCHAR2 (30) not null,
Describes the usage of data dictionaries and related SQL queries in Oracle databases.
Oracle Data Dictionary Overview A database is a collection of data. The database maintains and manages the user data, so where are these user data tables, what is
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