Learn R Programming

readwritesqlite (version 0.2.0)

rws_rename_table: Rename SQLite Table

Description

Rename SQLite Table

Usage

rws_rename_table(table_name, new_table_name, conn)

Value

TRUE

Arguments

table_name

A string of the name of the table.

new_table_name

A string of the new name for the table.

conn

A SQLiteConnection to a database.

See Also

Other rws_rename: rws_drop_table(), rws_rename_column()

Examples

Run this code
conn <- rws_connect()
rws_write(rws_data, exists = FALSE, conn = conn)
rws_list_tables(conn)
rws_rename_table("rws_data", "tableb", conn)
rws_list_tables(conn)
rws_disconnect(conn)

Run the code above in your browser using DataLab