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-
The use of decode in OracleDecode function usage in OracleMeaning 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
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)
The decode () function is one of the powerful functions of Oracle Pl/sql, and it is currently available only in Oracle company SQL, and not in the SQL implementations of other database vendors. (But it's not a standard SQL function, but that's his
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
Preface DECODE () function, which compares the input value with the parameter list in the function and returns a corresponding value based on the input value. The parameter list of a function is a sequence of several numbers and their corresponding
Oracle DatabaseThere are many functions. This article mainly introducesDecode,Sign,TruncNext, let's take a look at this part of the function.
I. decode
In Oracle/PLSQL, decode has the same features as IF-THEN-ELSE.
The decode function syntax is as
Description: DECODE (condition, value 1, translation value 1, value 2, translation value 2 ,... value n, translation value n, default value) the meaning of this function is as follows: IF condition value 1 THENRETURN (translation value 1) ELSIF
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
handling of column fields SQL Case Do the column processing Sql> Select deptno,sum (SAL) from the EMP Group by DEPTNO; Select Case When deptno=10 Then ' ACCOUNTING ' When deptno=20 Then ' Reserch ' When deptno=30 Then ' SALES ' End sum (SAL) from
Delphi uses python to decode emails (reproduced)
It is estimated that many people, like me, will not be able to handle many bugs when using Indy, and have to use and modify it.
Recently, Indy has been used to send and receive emails, from D7 to d200
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
DECODE (condition, value 1, return value 1, value 2, return value 2,... Value N, return value N, default value)DECODE (field or Field operation, value 1, value 2, value 3)The result of this function is that when the value of the field or Field
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
Description of the Decode () function in oracle: DECODE (condition, value 1, translation value 1, value 2, translation value 2 ,... value n, translation value n, default value) the meaning of this function is as follows: IF condition = value 1 then
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.
The DECODE function is one of the powerful functions of
Author: network collection, source: IT expert network, responsible editor: ttdb,
The decode () function is one of the powerful functions of Oracle PL/SQL. Currently, only oracle SQL provides this function, this function is not available for SQL
Oracle decode functions are very powerful, and here's a detailed description of the use of the Oracle decode function, hopefully giving you a better understanding of Oracle decode functions.
Oracle decode functionsThe Oracle decode function is an
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.