pg_renameColumn {pgTools}R Documentation

Helper command to rename a column via ALTER TABLE.

Description

Helper command to rename a column via ALTER TABLE.

Usage

pg_renameColumn(column_name, new_column_name)

Arguments

column_name

A string, the name of the column to change.

new_column_name

A string, the new name for the column.

Value

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

Examples

pg_renameColumn(
column_name = "newCol",
new_column_name = "col1"
)

[Package pgTools version 1.0.2 Index]