I. Basic knowledge of the database1. ConceptDatabase full Name database management system, referred to as DBMS, is a kind of technology to manage, store and share data in computer.2. ClassificationIn the process of database development, according to
Analysis of the merge statement:/**The merge statement is a new syntax for merging the UPDATE and INSERT statements oracle9i.With the merge statement, another table is queried based on the join criteria of one table or subquery,The connection
SQLLDR: Generally used to import files ending with any suffix, this time I was just trying to import a file with a suffix of. 20160101.Combined with the use of input.ctl, can be used under DOS, you can import hundreds of thousands of, millions of
The following exercises have the default table in the Oracle database as the Principal1. List all departments that have at least one employee.SELECT DISTINCT d.dname from EMP e,dept D WHERE e.deptno=d.deptno;SELECT * from DEPT WHERE DEPTNO in
In OracleYou can use the InStr function to judge a string to determine whether it contains the specified character.Finds the specified character in a string, returning the position of the specified character that was found.Grammar:InStr
Note: This article does not enumerate all the differences between the two, but in the actual application found in the different function points or processing mode, the reason is recorded, is to remind themselves, do not forgetGROUP BY:(1) Oracle,
A FOREIGN key constraint (that is, referential integrity constraints)Example: There are two tables following the referential integrity between themCreate Tablestudent (--Student tableS_ID Number (5) primary key,S_NAMEVARCHAR2 (20),T_IDVARCHAR2
General insert syntax is not said, there are some special usage1. Insert Allinto table1 (col1,col2) VALUES (V1,V2)into table2 (col1,col2) VALUES (V1,V2)......Select ...;The following select directly affects the previous into, and each record is
1. Change the machine name~]# hostnamectl--static Set-hostname Oracle2.~]# su-oracleLast login:tue April 10:11:34 CST from 192.168.30.250 on pts/0[Email protected] ~]$ lsnrctl statusLsnrctl for linux:version 11.2.0.1.0-production on 12-apr-2016 10:19
1: Unlocking the userAlter user username account unlock;2: Get system time, random numberSelect Sysdate, Sys_guid () from dual;3: Alias, make it more readable, if you want to preserve the original appearance of the field, you canSurround with double
Recently in the study of Oracle view problem, originally wanted to turn into materialized view (materialized view), which can greatly improve the response time of the system, but the workload is too large, so we studied the problem of SQL
1. Displays all partition table information that the current user can access:All_part_tables2. Displays information about all the partition tables for the current user:User_part_tables3. Display table partition information displays detailed
0009 notes 05-Table creation and constraints, SQL required notes 05-
1. CREATE a TABLE: Use the create table statement to specify the TABLE name (which cannot be the same as the existing TABLE name), column name, and data type of each column.
CREATE
0008 notes 04-subquery, join and combined query, and 04-
1. subquery: Nested query. The results of one query are used as the conditions for another query.
For example, to list the IDs, names, and contacts of all customers who have ordered the item
Detailed description of Oracle custom exception examples, detailed description of oracle custom
1. The error box is displayed:
Sample Code:
Declare v_count number; begin select count (*) into v_count from dept; if v_count
Execution result:
2.
Oracle timestamp added valueDuring my work, I encountered this problem. The session table needs to use the timestamp field. When the timestamp field is updated, the question is displayed. For example, the validity period of the session needs to be
40. Installation Steps of Oracledatabase11g in Windows XP
Example of how to install Oracle11g R2 on Windows 7 32-bit operating system. Let's just talk about it.
1. Extract the two oracle 11gR2 packages to a separate folder.
2. Find setup.exe in the
Install and use Oracle in windows
I. Download the oracle database from the official website
Here I downloaded oracle 11g r2, and selected the corresponding download file based on my operating system. Here I am windows 64-bit, so select the second
Oracle study Note 5 --- Table queryThe scott user is used below. The tables used are shown at the bottom.1. view the table structureDesc [Table name] desc emp2. Run the distinct command to remove duplicate lines.3. ExerciseSelect deptno, job, sal
First article on OracleSQL classical Query
Oracle SQL classic query Article 1
This article is the first article on typical Oracle SQL queries. It is just the author's own opinion. If you have any questions, I hope you can provide suggestions or
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