1. Compare the size function SIGN
Sign (x) or Sign (x) is called a symbol function. Its function is to take a certain number of symbols (positive or negative ):When x> 0, sign (x) = 1;When x = 0, sign (x) = 0;When x X can be a function or computing
When I read other users' SQL statements today, I still see the decode () function. I have never touched it before. I checked it online. It is quite a useful function, write it down and hope it will help you!
Decode () function
Syntax for the decode () function:1 Select decode (ColumnName, value 1, translation value 1, value 2, translation value 2,... Value n, translation value n, default value)23 from talbename45Where ...Where: ColumnName is the column defined in the
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 2 ThenRETURN
Decode 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 1 ThenRETURN (translation
The usage of the DB2 DECODE function generally uses CASE when data is queried and conditional judgment is required... WHEN the condition is equal, in addition to the CASE... you can also use the DECODE function. If you want to use like,>, -DECODE --
Environment: Ubuntu, Python 2.7Basic knowledgeThis program involves a number of knowledge points, listed here, not in detail, there are questions directly Baidu will have a bunch of.The request for the 1.URLLIB2 module sets HTTP requests, including
Using decode function to implement row variable column----Create a test tableCREATE TABLE Student_score (Name VARCHAR2 (20),Subject VARCHAR2 (20),Score Number (4,1));-----Inserting test dataInsert into Student_score (Name,subject,score) VALUES ('
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 value 1ELSEIF condition = value 2
Text transfer from Freespider to WeiboLook at other people's SQL today look at this inside there are also decode () function, has never been in contact with the Internet to check a bit, but also very useful for a function, write down hope to help
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
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
Php URL decode function corresponding to JavaScript URL encode function
1. Try using JS's encodeURI (), encodeURIComponent (), Escape () function for URL encoding,2. Using PHP UrlDecode function decoding, the results can not be decoded into normal
Author: eygle | English Version [indicate the source and author information and this statement in hyperlink form during reprinting]Link: http://www.eygle.com/archives/2005/10/oracle_howto_use_decode_function.html
The syntax structure of the Decode
Oracle Decode () functions and case statements are all common use, so what is the difference between them? Here's a detailed description of
The difference between the Oracle Decode () function and the case statement for your reference.
First, give
Introduction to the Decode () function:Main role: Translation of query results into other values (that is, in other forms of expression, the following examples);How to use:Select decode (ColumnName, value 1, translation value 1, value 2, translation
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
One, decode () function1. GrammarDECODE (Control_value,value1,result1[,value2,result2 ...] [, Default_result]);Control _value: The value you are trying to process. The decode function compares this value to the subsequent sequence of even orders to
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.