Count function usage in Oracle
Count is used to count the results of a query with several records
Example Table T_test
name
Gender
Age
Wages
Tom
Man
23
2000
John doe
Woman
34
1. Analysis table and index (analyze will not rebuild the index)
Analyze Tabletablename COMPUTE StatisticsEquivalent to analyze table TableName compute statistics for table for all indexes ForAllThe statistics for table exist in the view:
How Oracle Locking Works
When a Lock isn't a lock!
In the last installment of this series "Thing your Probably didn ' t Know about Oracle" you learned how Oracle locks The rows of a table. This is what your learned in a nutshell:
(1) When a
Always think of their understanding of Oracle can also, especially after the test OCM certification.
A few days ago a friend asked me, can you give a brief introduction to Oracle architecture? My mind immediately thought of the previous Oracle 11g
In and exists
I believe a lot of friends like me, have been for these two questions about who the faster problem tangled up, and also the brain for some reason to write down some of the standards, such as in the case of small child table in a
1. Extract Packages
2. Double click "Step.exe" in installed directory
3. Just click Next in Configure Security Updates phase (ignore warning)
4. Choose option "Create and configure a database" in Grid installation Options
5.
Oracle build table, and set the primary key to self increase
/*Create a user table*/CREATE TABLE user_info_t (ID integer NOT NULL,user_id varchar (50),User_name varchar (50),User_password varchar (50),User_sex varchar (20),User_age
1 Download virtual machine software: Enter page HTTPS://WWW.VIRTUALBOX.ORG/WIKI/DOWNLOADS,MAC system select VirtualBox for OS X hosts. 2 Install the virtual machine software can refer to: http://bbs.feng.com/read-htm-tid-5173608.html 3 to create a
This is Oracle's description of the backreference of regular expressions
As you can see from the definition, a substring is included in the form of a matching expression, which can be referenced later in the form of \. \1 corresponds to the first ()
There are five main loops: Exit when, loop, while, for (normal loop), for (cursor loop), and below for example one by one (all stored procedures).
1, Exit when cycle:Create or replace procedure Proc_test_exit_when isI number;Begini:=0;LOOPExit when (
Summary: In the process of developing a project, you encounter such a problem, is that the data from the remote server is made up of a string of rules, but what you want is not this string, it's a string of them, that's using Oracle's powerful
The dump file exported with exp needs to be imported with imp command.
Exp USER1/PASSWORD@TESTDB1 file=c:\dump\newdump.dmp rows=y
Imp user1/password@testdb2 file=c:\dump\dump1.dmp fromuser=fromuser touser=user1
The Exp method cannot export a table
Functions to create a self-added sequence
CREATE SEQUENCE user_certification_seq INCREMENT by 1--each time add a fewStart with 1-counting from 1Nomaxvalue--Do not set maximum valueNocycle--Cumulative, not cyclic
Cache 10 Cached sequence value,
Oracle database objects and user management
www.ncn.cnThe management and maintenance of the pattern object of Oracle DatabaseThis section focuses on the management and maintenance of schema objects for Oracle databases, which include
There are two simple examples to illustrate the efficiency of "exists" and "in"
1 SELECT * from T1 where exists (select 1 from T2 where t1.a=t2.a);
When the amount of T1 data is small and the T2 data is very large, the query efficiency of the T1
2)
Method One: The practice of Package and Procedure
First, create a cursor that returns a result set:
Create or Replace package PKGACCQ_TBUSERPRIsType result is REF CURSOR;End PKGACCQ_TBUSERPR;
Multiply the result knot that is thrown by using the
Set the field ID of the table T_uaer to self Increase: (implemented by the sequential sequence method)
----Create a tableCreate Table T_user (Id Number (6), UserID varchar2, Loginpassword varchar2, isdisable number (6));
----Create a sequenceCreate
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