Getting ROWID from Cda_Def (OCI stuff)
Date: Sun, 20 Nov 1994 01:29:28 GMT
Message-ID: <CzJLH4.LMu_at_netnews.whoi.edu>
Hello all you OCI programmers out there.
I'm writing a C, OCI program which inserts a row into a table. The
Cda_Def structure used in the "oopen", "oparse" and "oexec" calls gets
updated with the ROWID of the newly inserted row (its stored in a
sub-structure off of Cda_Def called "rid". It looks like this:
Now, when I retrieve a ROWID from SQL*Plus it looks something like this:
00004FBD.0000.0006
My question is: How do I put the "rid" structure info together to form
a ROWID that is in the same format as the one I can get from SQL*Plus?
I didn't see a function in the "Programmer's Guide to Oracle Call
Interfaces" which would do this for me nor did it explain how this
"rid" structure forms a valid ROWID.
I'm working on a Sun Workstation using Oracle 7.0.16 if that helps.
Thanks in advance for any ideas.
struct {
struct {
ub4 rcs4;
ub2 rcs5;
ub1 rcs6;
} rd;
ub4 rcs7;
ub2 rcs8;
} rid;
David Hiltz
dhiltz_at_whsun1.wh.whoi.edu
Network System Administrator
Northeast Fisheries Science Center
######&_at_&######
Received on Sun Nov 20 1994 - 02:29:28 CET