About 141,000 results
Open links in new tab
  1. MySQL equivalent of DECODE function in Oracle - Stack Overflow

    Jan 16, 2011 · I am trying to find an equivalent of DECODE function in MySQL. It works like this: Select Name, DECODE(Age, 13,'Thirteen',14,'Fourteen',15,'Fifteen',16,'Sixteen', 17,'Seventeen',18,'Eighteen',19,'Nineteen', 'Adult') AS AgeBracket FROM Person

  2. MySQL | DECODE( ) Function - GeeksforGeeks

    Nov 13, 2019 · The MySQL DECODE() function returns empty strings if the encoded string is an empty string. The DECODE() function accepts two parameters which are the encoded string to be decoded and the password string to decode the encoded string.

  3. MySQL DECODE() function - w3resource

    Aug 8, 2023 · DECODE() function . MySQL DECODE() function decodes an encoded string and returns the original string. Syntax: DECODE(crypt_str, pass_str); Arguments:

  4. MySQL DECODE Expressions: Usage & Examples - DataCamp

    Learn how to use the `mysql DECODE` function for decrypting encoded data with examples and best practices. Verify its availability in your MySQL setup for effective usage.

  5. MySQL DECODE() | Guide to How DECODE() function work in MySQL

    May 15, 2023 · How does DECODE () function work in MySQL? The DECODE () function syntax utilizes two parameters to decode an encoded value and generate the output. The first parameter is the string value that needs to be searched or compared, typically in an …

  6. The Equivalent of Oracle's decode Function in MySQL

    Apr 28, 2022 · This tutorial presents the three alternative implementations that we can use as the equivalent of Oracle’s decode() function in MySQL. For that, we will use IF(), CASE, and the combination of FIELD() and ELT().

  7. decode - Decoding fields in Mysql - Stack Overflow

    Sep 8, 2013 · The MySQL DECODE() function is used for decryption, its signature is: DECODE(crypt_str,pass_str) See the documentation. If you want something equivalent to Oracle's DECODE() function, see: MySQL equivalent of DECODE function in Oracle. Your query can be rewritten as: SELECT IF(txn_type = 'Expense', -txn_amount, txn_amount) AS …

  8. SQL DECODE Function - SQL Tutorial

    If you want to specify the value when the first argument is not equal to the second one, you use the following form of the DECODE() function: SELECT DECODE ( 1 , 2 , 'Equal' , 'Not Equal' ); Code language: SQL (Structured Query Language) ( sql )

  9. base64 decode a mysql column before performing a WHERE

    Mar 15, 2016 · If you're using MySQL 5.6.1 or higher you can use the FROM_BASE64() function: Takes a string encoded with the base-64 encoded rules used by TO_BASE64() and returns the decoded result as a binary string. The result is NULL if …

  10. Mysqls Alternative To Oracles Decode Function - sqlpey

    Nov 22, 2024 · MySQL does not provide a DECODE() function like Oracle, but you can achieve the same functionality with different options. You can use the IF() function, the CASE statement, or a combination of FIELD() and ELT() functions to simulate the DECODE() function in MySQL.

  11. Some results have been removed
Refresh