create_tbl: Create a Vertica Table

Description Usage Arguments Value Examples

View source: R/query_functions.R

Description

This function creates a table on Vertica, while dropping any existing table if exists

Usage

1
create_tbl(conn, table.name, table.vars)

Arguments

conn

A database connection object

table.name

A character string of the schema.table name

table.vars

A chracter string with SQL table column definitions (see example)

Value

A message that informs you of when the table is successfully created

Examples

1
2
3
4
vertica <- vertica_connect(driver.path)
table.name <- 'dev.test_table'
table.vars <- 'user_id INT, trips INT, gender VARCHAR'
create_tbl(vertica, table.name, table.vars)

cchoe/infoscout documentation built on May 20, 2019, 5:42 p.m.