The Decode function is one of the most powerful functions of Oracle PL/SQL, and it is currently available only to Oracle companies, and the SQL implementations of other database vendors do not yet have this function. What is the use of decode? Let's
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.
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,
Decode is actually if-else, such as decode (ybc, null, 0, ybc). This means that if the ybc column is null, the function returns 0; otherwise, the function returns ybc. Another example is decode (variable, condition, condition). This means: if-elsif.
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)
function Introduction The Decode function is one of the most powerful functions of Oracle PL/SQL and is currently available only to Oracle Corporation, where SQL implementations of other database vendors do not yet have this function.What is the
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 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.