Yahoo Search Búsqueda en la Web

Resultado de búsqueda

  1. 17 de dic. de 2018 · I'm selecting the max of a column from a table. But there is one problem: if there are no rows in the table, it returns null. I want to use a function which will return a certain value if the result is null. For example with Oracle there is the NVL function which gives a certain value if the column is null. Is there an equivalent function in ...

  2. 4 de ago. de 2011 · Para resolver estas cuestiones, en Oracle existe la función NVL (elemento, reemplazo) que básicamente hace lo siguiente: si el elemento es igual a NULL, en la salida saca la cadena “reemplazo”. En MySQL la función tiene otro nombre: IFNULL y su referencia en MySQL es la siguiente: IFNULL(expr1,expr2)

  3. 4 de ago. de 2009 · At least in Redshift/Postgres SQL, NVL is a synonym for COALESCE (https://docs.aws.amazon.com/redshift/latest/dg/r_NVL_function.html). As far as I can tell, COALESCE in MySQL indeed works exactly like NVL in Redshift/Postgres.

  4. The MySQL IFNULL() function lets you return an alternative value if an expression is NULL: SELECT ProductName, UnitPrice * (UnitsInStock + IFNULL(UnitsOnOrder, 0)) FROM Products;

  5. In Oracle, the NVL function allows you to replace NULL with the specified expression i.e. it returns the first operand if it is not NULL, otherwise it returns the second operand. In MySQL you have to use IFNULL function.

  6. 30 de sept. de 2022 · Tengo una base llamada "base" que tiene una tabla llamada "Programa" en MySQL, estoy trabajando en MySQL Workbench en donde la columna "Lugar" tiene un valor nulo cuando el id es 19 y 20, el objetivo es hacer una consulta que en lugar de mostrar el valor como null lo muestre como "No existe", Intento hacer la consulta así:

  7. 1 de ene. de 2018 · ISNULL (SQL Server, MySQL) This function is the same as NVL: it allows you to use a different value if NULL or an empty value is found. ISNULL exists in SQL Server and MySQL, where NVL is only in Oracle. NVL2 (Oracle) The NVL2 function is similar to the NVL function.