OCILIB supports the Oracle ROWID type through C scalar string types (otext).
The maximum size of an ROWID buffer is defined by the constant OCI_SIZE_ROWID
- Example
#include "ocilib.h"
{
}
int main(void)
{
char rowid[OCI_SIZE_ROWID + 1] = "";
{
return EXIT_FAILURE;
}
OCI_Immediate(cn,
"select rowid from products where code = 1", OCI_ARG_TEXT, rowid);
OCI_Prepare(st,
"select code, name, rowid from products where rowid = :id");
return EXIT_SUCCESS;
}