When writing SQL in order to count or to sort the data, we will encounter the need for a column of data consistent, b column of data to order the largest column B data this situation. So how do we write SQL in this situation?
We can follow our
Parallel DDL
Sql> CREATE index idx_t3 on T1 (object_name,object_id) parallel;The index has been created.Sql> Select Index_name, degree from user_indexes where index_name= ' idx_t3 ';No rows selectedSql> Select Index_name, degree from user_indexes
has been entangled in the stored procedure is and as recently on the Internet to check the huge amount of information, summed up as follows:
There is no difference in stored procedures (PROCEDURE) and functions (function);
Only as cannot be used in
The project needs to create temporary tables to temporarily store a table of data that we know can be implemented with subqueries, and the syntax is simple:
Create global temporary table Temp1 as select * from Jjr_tjjr_cyzgxx
By querying the
Method One: You can configure it by opening the Tnsnames.ora in the Oracle installation directory as follows:
Specific path such as: F:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
# Tnsnames.ora Network Configuration File:f:\
Recently, the company's server seems to have a problem, often motionless will appear problems, Plsql will also frequent the crash log not up, think of the database backup, just in case.
The simple code is as follows:
Create process
Functions in an Oracle database
A: Table name, B: The name of the field to be modified
Update A Set B = replace (b, ' null ', ' 0 ') where id = ' 5644 ';
The execution effect is as follows:
The use of Decode functions
The function is--the time of
Definition:
A stored procedure (Stored Procedure) is a set of SQL statements that are compiled and stored in a database in order to complete a specific function. The user specifies the name of the stored procedure and gives the parameter, if the
Recently followed puppet together again Oracle9i 9.2.0.1, although previously learned from the DBA's point of view to study every problem, but after all, not enough cow fork we will find that the entire Oracle system architecture is not what we can,
Learn python, recording the process to make a backup, convenient for later inquiries. Learn from other great God articles that will be recorded before the text.Reference article:
Indexes (Index)
a test in the university, because it is a course of examination, usually do not how to learn, but to do a test volume, so everyone panic, each prepared their own small copy, everyone has more than 20 pages (exaggeration), witty
Oracle Automatic Backup detailed steps
Background: Oracle 10g Server, Oracle 10g client, Windows XP operating platform
Requirements: The Oracle database server automatically backs up the database YTCN once a day.
Solution: Automatically generate
1. What is a view
A view is a virtual table
views are based on existing tables , and the tables on which the views are built are called base tables .
A statement that provides data content to a view is a SELECT statement that can be
Ideas:Randomly sorts the values taken out first, and then randomly sorts the results of each fetchExamples are as follows:SELECT * FROM (select T.code fromtbizops_province t ORDER by Dbms_random. RANDOM ()) where rownum SELECT * FROM (select T.code
1, first find the operation record of the tableSELECT * from V$sqlarea a where a.sql_text like '%tb_acct_sysdate% ';2, find the sql_id corresponding to the UPDATE statement from the above recordSELECT * from V$sqltext A,v$sqlarea b where
Don't say much, just go dry.1, query the current user to create the following table statementSelect Dbms_metadata.get_ddl (' TABLE ', ' ux_future ') from dual;2, query other users to create the following table statementSelect Dbms_metadata.get_ddl ('
When I first learned to create TABLE, I didn't notice it. You can specify a default value after learning. Then wrote the following statement: When I checked, I found out that the results were like this.I am wondering if there is, I clearly specify
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