Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

## Not run: 
sql <- "SELECT * FROM @table_name"
writeSql(sql, "myParamStatement.sql")

## End(Not run)

SqlRender

Rendering Parameterized SQL and Translation to Dialects

v1.7.0
Apache License 2.0
Authors
Martijn Schuemie [aut, cre], Marc Suchard [aut]
Initial release
2021-03-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.