Grass Valley K2 TX/MAM Database Protocol Manual v.2.2 User Manual
Page 28
Advertising

TX/MAM Database Protocol Manual - document version: 2.2
– Page 28
8.8 Deleting a record (indicated by the ID) from a table
int cob_delete_table_element( char *table, long long id );
Parameters
Name
Description
char *table
The table to update, e.g. "asset_element".
long long id
The id of the record to delete, e.g. 123.
Result
The result of the function is an integer that can have following values:
Value
Description
0
Success, the record has been deleted.
-1
Failure, the record could not be deleted.
Example
This example deletes the asset_element record with id== 123:
if ( cob_create_table_element("asset_element", 123) != 0 ) {
/* Log error */
}
Advertising