Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 16 Ιαν 2011 · You can use IF() where in Oracle you would have used DECODE(). mysql> select if(emp_id=1,'X','Y') as test, emp_id from emps;

  2. 1 Ιουν 2023 · The purpose of the Oracle DECODE function is to perform an IF-THEN-ELSE function. It’s similar to a CASE statement, but CASE is a statement where DECODE is a function. It allows you to provide a value, and then evaluate other values against it and show different results.

  3. 6 Αυγ 2024 · This tutorial provides a comprehensive guide to using the SQL DECODE() function in Oracle. I will also compare DECODE() to CASE WHEN in Oracle and help you understand when to use each function. Finally, I will provide code for the equivalent transformations in SQL Server, PostgreSQL, and MySQL.

  4. The Oracle DECODE() function allows you to add the procedural if-then-else logic to the query. In the following example, the Oracle DECODE() function compares the first argument (1) with the second argument (1).

  5. The SQL DECODE function is a database function used for conditional value replacement in a query result. It is primarily used in Oracle Database and a few other database systems. DECODE allows you to compare a value to a set of possible values and return a corresponding result when a match is found.

  6. Purpose. DECODE compares expr to each search value one by one. If expr is equal to a search, then Oracle Database returns the corresponding result. If no match is found, then Oracle returns default. If default is omitted, then Oracle returns null.

  7. This Oracle tutorial explains how to use the Oracle/PLSQL DECODE function with syntax and examples. Description. The Oracle/PLSQL DECODE function has the functionality of an IF-THEN-ELSE statement. Syntax. The syntax for the DECODE function in Oracle/PLSQL is: DECODE( expression , search , result [, search , result]... [, default] )

  1. Γίνεται επίσης αναζήτηση για