Answers for "what is the use of decode function in sql"

SQL
0

sql decode

DECODE(X, D1, R1, D2, R2, D3, R3, ..., Rx)
/*
if X = D1 then return R1
else if X = D2 then return R2
else if X = D3 then return R3
...
else return Rx
*/
Posted by: Guest on February-02-2021

Code answers related to "what is the use of decode function in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language