Description Usage Arguments Value
Add or remove a column to/from a table.
1 2 3 4 5 6 7 8 9 10 11 |
connName |
String. Default is "connEM". Contains the name of the variable that contains the name of the "connection" in the environment "env". |
name |
A character string specifying a PostgreSQL table name. |
colname |
A character string specifying the name of the column |
action |
A character string specifying if the column is to be added ("add", default) or removed ("drop"). |
coltype |
A character string indicating the type of the column, if action = "add". |
cascade |
Logical. Whether to drop foreign key constraints of other tables, if action = "drop". |
env |
Environment. Default is the .Global environment. This is the environment to return the connection object "connEM". |
display |
Logical. Whether to display the query (defaults to TRUE). |
exec |
Logical. Whether to execute the query (defaults to TRUE). |
TRUE if the column was successfully added or removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.