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

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

  1. 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.

  2. This tutorial shows you how to use the Oracle DECODE() function to add the procedural if-then-else logic to SQL queries.

  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. 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;

  5. www.sqltutorial.org › sql-comparison-functions › sql-decodeSQL DECODE - SQL Tutorial

    SQL DECODE() example. We will use the employees table in the sample database for demonstration. See the following query: SELECT employee_id, first_name, last_name, salary FROM employees ORDER BY DECODE ('S', 'F', first_name, 'L', last_name, 'S', salary); Code language: SQL (Structured Query Language) (sql)

  6. Mastering Oracle SQL. 9.3 DECODE and CASE Examples. The following sections present a variety of examples illustrating the uses of conditional logic in SQL statements.

  7. 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.

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