Learn R Programming

sqlHelpers (version 0.1.2)

drop_table: Generate a DROP TABLE statement, optionally execute the statement if con is not NULL.

Description

Generate a DROP TABLE statement, optionally execute the statement if con is not NULL.

Usage

drop_table(args, con = NULL)

Value

A string, the DROP TABLE statement; or the results retrieved by DBI::dbSendQuery after executing the statement.

Arguments

args

A string, the arguments to add to the DROP TABLE statement.

con

A database connection that can be passed to DBI::dbSendQuery/DBI::dbGetQuery.

Examples

Run this code
drop_table("sample")

Run the code above in your browser using DataLab