splitSql: splitSql

Description Usage Arguments Details Value Examples

View source: R/RenderSql.R

Description

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

Usage

1
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

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

hxia/SqlRender4Impala documentation built on May 17, 2017, 12:06 a.m.