Learn R Programming

SqlRender (version 1.19.1)

writeSql: Write SQL to a SQL (text) file

Description

writeSql writes SQL to a file

Usage

writeSql(sql, targetFile)

Arguments

sql

A string containing the sql

targetFile

The target SQL file

Details

writeSql writes SQL to a file

Examples

Run this code
if (FALSE) {
sql <- "SELECT * FROM @table_name"
writeSql(sql, "myParamStatement.sql")
}

Run the code above in your browser using DataLab