Posted by Dikkie Dik on 09/28/05 09:34
Oak Hall wrote:
> I have a several tables the primary index field name in different in each
> one, how do I query with a 'where "column 1" = 3' if I do not know the name
> of that column only that it is the first field?? Thanks
> Oak
>
>
In the special case you would read the entire record, you could also use
the HANDLER statement.
HANDLER <table name> OPEN AS <handle name>;
HANDLER <handle name> READ `PRIMARY`=3;
It is wise to close the handle later with HANDLER <handle name> CLOSE;
Best regards
[Back to original message]
|