Ispirer Website
Ispirer Toolkit Overview
Free Trial
ODBC - SQLPrimaryKeys Function
ODBC - SQLPrimaryKeys | |
---|---|
Syntax | SQLRETURN SQLPrimaryKeys( SQLHSTMT StatementHandle, SQLCHAR* CatalogName, SQLSMALLINT NameLength1, SQLCHAR* SchemaName, SQLSMALLINT NameLength2, SQLCHAR* TableName, SQLSMALLINT NameLength3); |
Description | Returns the column names that make up the primary key for a table. The driver returns the information as a result set. This function does not support returning primary keys from multiple tables in a single call. |
Returns | SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE |