csv_in_sql: Embed CSV data in SQL

Description Usage Arguments Details Value Examples

Description

Translate a dataset into a plaintext SQL representation

Usage

1
2
csv_in_sql(data, tab_name = "tbl", separator = "|", dialect = "PLSQL",
  version = c("11g", "10g"))

Arguments

data

dataset to be translated

tab_name

name of the resulting "WITH table".

separator

specifies string to be used as delimiter in the SQL query (use any character/string that is not present in the data).

Details

Tested with Oracle's PL/SQL.

Value

SQL query as a character value.

Examples

1
2
# data(iris)
# cat(csv_in_sql(iris))

vh-d/RSQLbuilder documentation built on May 12, 2019, 6:26 p.m.