Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> OCIDescribeAny for column info ?
Hi,
I'm trying to use OCIDescribeAny() to find out column names and data
types
for a specific table. The problem is that a segmentation fault occurs
...
text objptr[] = "my_table_name";
ub4 objp_len = strlen( (char*) objptr);
OCIDescribeAny( servicehp, errorhp, objptr, objp_len, OCI_OTYPE_NAME, 1,
OCI_PTYPE_TABLE, descrhp);
(all the handles above (servicehp, errorhp, descrhp) are allocated))
If I replace OCI_PTYPE_TABLE against ..._TYPE the program does not crash but it's a table I'm interested in ...
BTW - are there any other ways to specify a table apart from using its name ? What is a TDO ?
Thanks in advance !
Mart Käsper E-mail : mart_at_netsoftlund.se Netsoft Lund Tel : TBD
==========================
==========================
====================
Don't believe anything you hear or anything you say
![]() |
![]() |