writeSql writes SQL to a file

writeSql(sql, targetFile)

Arguments

sql

A string containing the sql

targetFile

The target SQL file

Details

writeSql writes SQL to a file

Examples

if (FALSE) { # \dontrun{
sql <- "SELECT * FROM @table_name"
writeSql(sql, "myParamStatement.sql")
} # }