1. Create user (requires DBA authority to log in)Create user username identified by password;After you create a user, you authorize it, and if you do not authorize it, you will not be able to log in to the database or do anything:Grant
1. Descartes SetSELECT * from EMP, dept;2. Equivalent connectionSelect ename, Job from EMP, deptwhere Emp.deptno=dept.deptno;3. Non-equivalent connectionSelect ename, grade from EMP, SalgradeWhere Sal between Losal and Hisal;Actually, I don't quite
1. What does the index do?Answer: The index is used in the database to improve query efficiency.Add: Too many indexes can significantly reduce the efficiency of DML statements, and the principle of indexing is to build on fields that are frequently
1, export the name of a table (here will export sequences and function and other content)EXPDP Test/test@orcl schemas=Test DumpFile=test.dmp DIRECTORY=Db_bak EXCLUDE=TABLE: \ "not in \ (\'a\') \"2, export the name is not a table (remove not and we
Statistical information Collection1: Create Analysis Table$ cd $ORACLE _home/rdbms/admin$ sqlplus/as SYSDBA > @utlxplan. SQL2: For convenience, you can create a synonym table ( by default only the SYS user can use )sql> create public synonym
After the first chapter of the basic data operation instructions are practiced, some operations of the database are performed.
Create a table class has two columns: numbers and names:
CREATE table Class (numbers number, names char (20));This
CREATE TABLE Products (ProductID Number (TEN) is not NULL,Name VARCHAR2 (255),Description CLOB);Query statement:Select T.productid, t.name from Products twhere Dbms_lob.instr (t.description, ' AAA ', 1, 1) > 0;In Oracle, you can use the InStr
What is consistent reading?Consistent reading refers to a change in the middle that is ignored from the moment of query.Examples ShowFor example, I have two accounts, a, B. A has 1000 pieces and B has 1000 fast. When I query the query speed is
Error logging:
Invalid source path '. /stage/components/oracle.jdk/1.5.0.17.0/1/datafiles ' specified for unzip.
This error should be I only unzipped the first compressed package, not decompression the second one.2. Another problem is that
An error encountered during the use of spring+mybatis+oracle.Finally see the online sharing to solve this problem, mark.The main problem is that the configuration of the mybatis is problematic. I'm going to copy it right here.Original link:
The use of the--oracle trunc () function/************** Date ********************/1.select trunc (sysdate) from dual--2011-3-18 today's date is 2011-3-182.select trunc (sysdate, ' mm ') from dual--2011-3-1 returns the first day of the month.3.select
The Oracle Intercept character (SUBSTR), which retrieves the character position (instr), when the then else End statement uses the favoriteCommon functions: Substr and InStr1.SUBSTR (String,start_position,[length]) to substring, return
Oracle has to start two services:1.oracleserver***. (' * ' means that the database name is also known as an "instance" and a service represents a database)2.oracleoradb11g_home1tnslistener. (only start this to connect to the database via JDBC)Oracle
Scheduled execution of stored procedures in peacetime development often used, years ago when they did a, because the time relationship has not been able to record, is now recorded.First, a complete example is used to implement the stored procedure
The merge is used to select some data from one table to update or INSERT into another table. The way in which you end up with an update or an insert depends on the condition in the statement. Here's a quick example: SQL> Create TableMerge_test1 (A
[Ubuntu14.04] Build a PHP5 + Apache2 + Oracle environment
RT
A recently developed project where the database uses oracle. Oracle itself supports Red Hat, which is not good for ubuntu. If ubuntu needs to install oracle, the system itself needs to do
Oracle Auto-start
By default, Oracle databases in Linux do not start on their own, but many times we need to start the Database on their own, so we need to set the settings as follows:
System Environment: CentOS 6.5
ORACLE version: 10.2
1.
Official Oracle and oracle website
We have encountered such a requirement: to input a String for the method, such as "User ID0, user ID1, user ID2... ", then return a result set based on these IDs as a data table for query by others.SELECT * from
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