SQLAllocStmt 映射

当应用程序通过 ODBC 3.x 驱动程序调用 SQLAllocStmt 时,调用:

SQLAllocStmt(hdbc, phstmt)  

由驱动程序中的驱动程序管理器映射到 SQLAllocHandle ,如下所示:

SQLAllocHandle(SQL_HANDLE_STMT, InputHandle, OutputHandlePtr)  

将 InputHandle 设置为 hdbcOutputHandlePtr 设置为 phstmt