UTL_FILE.PUT_LINE_UDF
Definition
This user-defined function (UDF) is used to replicate the functionality of the Oracle UTL_FILE_PUT_LINE procedure.
Parameters
FILE
VARCHAR
The file to open and save the new buffer.
BUFFER
VARCHAR
The buffer to be saved on the defined file.
Returns
Returns a varchar with the result.
Usage example
To review the lines in the file, there are two ways: Downloading the file from the Snowflake CLI or briefly review the information with SELECT * FROM UTL_FILE.FOPEN_TABLES_LINES;
but only if the file has not been closed.
Input:
Output:
Last updated