CDatabase::BindParameters
請覆寫 BindParameters ,當您在呼叫之前 CDatabase::ExecuteSQL需要繫結參數時。
virtual void BindParameters(
HSTMT hstmt
);
參數
- hstmt
要繫結的參數的 ODBC 陳述式控制代碼。
備註
您不需要從預存程序時,的結果集用這個方法。
在您的繫結參數的覆寫、呼叫 SQLBindParameters 和相關的 ODBC 函式。 MFC 在呼叫之前呼叫您的覆寫。 ExecuteSQL。 您不需要呼叫 SQLPrepare; ExecuteSQL 呼叫 SQLExecDirect 並終結 hstmt,只能使用一次。
需求
Header: afxdb.h