Learn R Programming

pgTools (version 1.0.2)

pg_renameTable: Helper command to rename a table via ALTER TABLE.

Description

Helper command to rename a table via ALTER TABLE.

Usage

pg_renameTable(new_table_name)

Value

A string, PostgreSQL helper statement to rename a table using ALTER TABLE.

Arguments

new_table_name

A string, the new name for the table.

Examples

Run this code
pg_renameTable(
new_table_name = "table1"
)

Run the code above in your browser using DataLab