pg_addColumn | R Documentation |
Helper command to add a column via ALTER TABLE.
pg_addColumn(
column_name,
data_type,
default = NULL,
constraint = NULL,
if_not_exists = FALSE
)
column_name |
A string, the name of the column to add. |
data_type |
A string, the data type of the column to add. |
default |
A string, a default value for the column to add. |
constraint |
A string, a constraint for the column to add. |
if_not_exists |
Boolean, if TRUE, adds IF NOT EXISTS to the ADD COLUMN statement. |
A string, PostgreSQL helper statement to add a column using ALTER TABLE.
pg_addColumn(
column_name = "newCol",
data_type = "text"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.