Download ODBC Users` Manual - ALTIBASE Customer Support

Transcript
SQLPutData
SQLPutData
You can use this when inserting data while running command.
Syntax
SQLRETURN SQLPutData (
SQLHSTMT
stmt,
SQLPOINTER
data,
SQLLEN
strLength);
Argument
Data Type
Argument
In/Out
Description
SQLHSTMT
stmt
In
Command Handle
SQLPOINTER
data
In
Pointer of Data Buffer
SQLLEN
strLength
In
Data Size
Return Value
SQL_SUCCESS
SQL_SUCCESS_WITH_INFO
SQL_INVALID_HANDLE
SQL_ERROR
Description
You can use this with SQLParamData when inserting data while running command.
Diagnosis
SQLSTATE
Description
Comments
HY000
General Error
No error occurs explicitly.
HY001
Memory Allocation Error
This denotes to fail to allocate memory for handle.
ODBC Users’ Manual
140