powered by
Generate a TRUNCATE TABLE statement, optionally execute the statement if con is not NULL.
truncate_table(args, con = NULL)
A string, the TRUNCATE TABLE statement; or the results retrieved by DBI::dbGetQuery after executing the statement.
A string, the arguments to add to the TRUNCATE TABLE statement.
A database connection that can be passed to DBI::dbSendQuery/DBI::dbGetQuery.
truncate_table(args = "table1")
Run the code above in your browser using DataLab