top of page

Funciones anidadas en SQL


Oracle nos permitirá que una función llame a otra función.


Las funciones a nivel de filas pueden ser anidadas hasta cualquier nivel.


Las funciones anidadas son evaluadas desde el nivel más profundo, al nivel menos profundo.


EJEMPLOS:

  • SELECT TO_CHAR(SYSDATE) FROM DUAL;

    • RESULTADO: 20/09/20.


  • SELECT CONCAT ('ESTAMOS EN EL MES ‘,

( SELECT TO_CHAR((

SELECT EXTRACT(MONTH FROM SYSDATE) FROM DUAL)

)FROM DUAL)

) FROM DUAL;

  • RESULTADO: ESTAMOS EN EL MES 9.

oferta en cursos online
bottom of page