Original address: http://www.cnblogs.com/BetterWF/archive/2012/06/12/2545829.htmlReproduced in reserveCompare size function Signfunction Syntax:Sign (n)Function Description:Take the sign of the number n, greater than 0 returns 1, less than 0 returns-
Meaning explanation:Decode (condition, value 1, return value 1, value 2, return value 2,... Value N, return value N, default value)The function has the following meanings:IF condition = value 1 ThenRETURN (translation value 1)elsif condition = value
V $ sqltext: the complete SQL statement is stored, and the SQL statement is segmented. v $ sqlarea: the stored SQL statement and related information, such as the cumulative number of executions, logical reads, statistical information such as
Mysql and Oracle use the rollup function to complete row and column statistics ??? Yesterday, I suddenly saw in a blog that Mysql also had the rollup function. The original blog post used rollup for row and column statistics. The original blog post
Find SQL that performs inefficiently in Oraclekt431128 posted 9 month ago, total 0 reviewsV$sqltext: The stored full sql,sql is splitV$sqlarea: Stored SQL and some related information, such as the cumulative number of executions, logical reading,
-Query for the slowest SQLSELECT * FROM (Select Parsing_user_id,executions,sortsCommand_type,disk_reads,sql_text from V$sqlarea ORDER BY disk_reads Desc) Where rownum--Query corresponding sessionSelect SE. Sid,se. Serial#,pr. SPID,SE. Username,se.
Reprint: http://www.blogjava.net/ashutc/archive/2009/07/19/277215.html1. Select the most efficient indication order (only valid in rule-based optimizer)The Oracle parser processes the table names in the FROM clause in a right-to-left order, and the
Many students on the optimization of SQL seems to know very little, recently summed up the following 34 articles for reference only.
(1) Select the most efficient table name order (valid only in the Rule-based optimizer):
The Oracle parser
reprinted from: Http://www.cnblogs.com/rootq/archive/2008/11/17/1334727.html (1) Select the most efficient table name order (valid only in the rule-based optimizer):The Oracle parser processes the table names in the FROM clause in a right-to-left
When you need to develop and output HTML reports in the database, you can directly use the htp package during the process to implement HTML code and output after data processing. and the output is in the desired format (controlled by the HTML Markup
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.