Grass-valley K2 TX/MAM Database Protocol Manual v.2.2 Manual de usuario Pagina 28

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 38
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 27
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 */
}
Vista de pagina 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 37 38

Comentarios a estos manuales

Sin comentarios