SQLExecute是ODBC中的一個API函數,用來執行由SQLPrepare創建的SQL語句。
SQLRETURN SQLExecute(
SQLHSTMT StatementHandle
);
StatementHandle SQL語句句柄
SQLPrepare(hstmt,(SQLCHAR*)"insert into admin(admin_id,admin_name,admin_pass) values(1,'admin','pass')",SQL_NTS);
SQLExecute(hstmt);