cursor/changeAdultName.c
{
RDM_RETCODE rc;
char name[32];
rc = rdm_cursorReadColumn (
adult, COL_ADULT_ADULT_NAME, name, sizeof (name), NULL);
{
printf ("Change name from %s to %s\n", name, newName);
rc = rdm_cursorUpdateColumn (
adult, COL_ADULT_ADULT_NAME, newName, strlen (newName) + 1);
}
return rc;
}
RDM_RETCODE rdm_cursorUpdateColumn(RDM_CURSOR cursor, RDM_COLUMN_ID columnId, const void *columnValue, size_t bytesIn)
Update a single column in a row.
RDM_RETCODE rdm_cursorReadColumn(RDM_CURSOR cursor, RDM_COLUMN_ID columnId, void *columnValue, size_t bytesIn, size_t *bytesOut)
Read a single column from a table row.