Description Usage Arguments Details See Also
suggest that this be done prior to adding any data to the table.
1 | sqlAddIndex(conn, table, index, unique = FALSE, ...)
|
conn |
a DBIConnector Object |
table |
table in database to which primary key will be added |
index |
a character vector of column names which make up the index for the table |
unqiue |
boolean specifying if index is unique (a rows must have a unique value) |
'sqlAddIndex()' composes a single SQL statement to add a composite primary key to a table in the database
Other SQL generation: sqlAlterTableWithPrimaryKey
,
sqlDeleteAllRecords
,
sqlOnClause
,
sqlReplaceInTable
,
sqlSetClause
, sqlUpdateTable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.