TIBCMetaData and primary key
Posted: Fri 10 Feb 2012 11:07
Hello,
I'am looking for a sample to list all field name which are primary key of a table. TIBCMetaData seems to be one of the components without example.
For exemple if :
Create table mysample
(
ID integer not null,
ID2 intger not null,
Name varchar(30),
primary key (ID, ID2)
)
I would like : ID and ID2 has result.
I have successfully done it to extract tablename, fieldname but I don't know how to extract "primary key" fields.
Best regards,
Fabrice
I'am looking for a sample to list all field name which are primary key of a table. TIBCMetaData seems to be one of the components without example.
For exemple if :
Create table mysample
(
ID integer not null,
ID2 intger not null,
Name varchar(30),
primary key (ID, ID2)
)
I would like : ID and ID2 has result.
I have successfully done it to extract tablename, fieldname but I don't know how to extract "primary key" fields.
Best regards,
Fabrice