skip to main content
IP API Reference for C/C++ : IP API for C/C++ : OASQLIP_primarykeys
 

OASQLIP_primarykeys

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)
 
Table 43: 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