Last active
January 23, 2016 04:52
-
-
Save arbo-hacker/f8385586df6b20ff5419 to your computer and use it in GitHub Desktop.
Funcion para obtener nombre de archivo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION FNC_FILENAME (ruta_archivo VARCHAR2, | |
barra VARCHAR2, | |
extension VARCHAR2) | |
RETURN VARCHAR2 | |
IS | |
BEGIN | |
RETURN REGEXP_SUBSTR (ruta_archivo, | |
'[^' || barra || ']+.' || extension, | |
1, | |
1); | |
END; | |
/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment