UTL_FILE.FOPEN_UDF (VARCHAR, VARCHAR, VARCHAR)
Definition
This user-defined function (UDF) is used to replicate the functionality of the Oracle UTL_FILE_FOPEN
procedure.
Parameters
PACKAGE_VARIABLE
VARCHAR
The variable related to the file opening.
FILENAME
VARCHAR
The file to be opened.
OPEN_MODE
VARCHAR
Indicates de mode on which the file will be available.
Returns
Returns a varchar with the result.
Usage example
The UTL_FILE.FOPEN_UDF
allows to open a .csv file. To access the file it is required to create a stage
for the file and use the Snowflakr CLI to upload it.
Input:
Output:
Last updated