pg_renameColumn: Helper command to rename a column via ALTER TABLE.

View source: R/pgTools.R

pg_renameColumnR 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"
)

pgTools documentation built on March 31, 2023, 7:56 p.m.