OASQLIP_primarykeys
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 8.1
- Documentation
This function makes a result set available with primary keys that match the criteria specified by the input arguments. The result set must match the OA_FKEYS table definition.
int OASQLIP_primarykeys(
SQLIP_HSTMT sqlip_hstmt,
OAWCHAR * sPKQual,
OADS_SMALLINT PKQualLen,
OAWCHAR * sPKOwner,
OADS_SMALLINT PKOwnerLen,
OAWCHAR * sPKName,
OADS_SMALLINT PKNameLen)
Parameters for OASQLIP_primarykeys
| Parameter | Type | Description |
| INPUT | ||
| sqlip_hstmt | SQLIP_HSTMT | Statement handle. |
| sPKQual | OAWCHAR * | Qualifier name used to narrow down the search. When set to NULL, the parameter is ignored for search. The result set must match the OA_FKEYS table definition. |
| PKQualLen | OADS_SMALLINT | Length of the qualifier name in characters. |
| sPKOwner | OAWCHAR * | Owner name used to narrow down the search. When set to NULL, the parameter is ignored for search. |
| PKOwnerLen | OADS_SMALLINT | Length of the owner name in characters. |
| sPKName | OAWCHAR * | Table name used to narrow down the search. When set to NULL, the parameter is ignored for search. |
| PKNameLen | OADS_SMALLINT | Length of the table name in characters. |
| RETURN | ||
| int | OADS_SUCCESS OADS_ERROR |