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

splitSql

Split a single SQL string into one or more SQL statements


Description

splitSql splits a string containing multiple SQL statements into a vector of SQL statements

Usage

splitSql(sql)

Arguments

sql

The SQL string to split into separate statements

Details

This function is needed because some DBMSs (like ORACLE) do not accepts multiple SQL statements being sent as one execution.

Value

A vector of strings, one for each SQL statement

Examples

splitSql("SELECT * INTO a FROM b; USE x; DROP TABLE c;")

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.