The Decode function is used extensively in Oracle SQL query statements and is often applied to the PL/SQL statement block.The basic expression of the 1,decode () function statement is:Decode (EXPR1,EXPR2,EXPR3,[EXPR4])This expression is understood
The decode function is one of the powerful functions of Oracle PL/SQL. Currently, only oracle SQL provides this function, and other database vendors do not yet implement this function. What is the purpose of decode? First, let's construct an example.
Before we knew this function, we had to use a number of functions and outer joins to calculate the categorical statistics for the same table or one of the fields in the same query statement block. Using this function can often solve a lot of complex
The Decode function is an Oracle Pl/sql is one of the powerful functions, and currently only Oracle company SQL provides this function, other database vendors do not have the SQL implementation. What is the use of decode? To construct an example,
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-
Compare size function sign Function Syntax: sign (n) Function Description: Take the number n symbol, return 1 if it is greater than 0, return-1 if it is less than 0, return 0 if it is equal to 0. Example: 1. selectsign (100), sign (-100), sign (0)
SQL statement DECODE () and NVL () function usage SELECT DECODE (WP01.ONDO _ KBN, 0 ,'?? For example, when '1, 'normal temperature ', 2, and 'cold recovery') AS ONDO_KBNFROM WP01_S_HAITOTAL WP01 // analysis: When WP01.ONDO _ KBN = 0 "?? When
The Oracle DECODE function is very powerful. The following describes the usage of the Oracle DECODE function in detail. We hope you can learn more about the Oracle DECODE function.
Oracle DECODE Function
Oracle DECODE function is an exclusive
The Oracle decode function is very powerful. The following describes the usage of the Oracle decode function in detail. We hope you can learn more about the Oracle decode function.
Oracle decode Function
Oracle decode function is an exclusive
The Oracle DECODE function is very powerful. The following describes the usage of the Oracle DECODE function in detail. We hope you can learn more about the Oracle DECODE function.Oracle DECODE FunctionOracle DECODE function is an exclusive function
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.