![]() ![]() ![]() |
Ispirer SQLWays Database Migration Software
Conversion of Oracle DECODE to MySQL CASE
The Oracle DECODE function is used to compare the specified expression to each search value one by one and return the corresponding result.
MySQL also supports the DECODE function, but it is used to decode the encrypted strings using the specified password. The MySQL CASE expression is an equivalent of the Oracle DECODE function.
SQLWays converts the Oracle DECODE function to the MySQL CASE expression.
Example:
![]() ![]() ![]() |