ODBC API常用函数诠释
2008-09-03 10:01:06 来源:WEB开发网以下为ODBC API的常用十四个函数,先列出在PowerBuilder中外部函数引用声明:
functionintegerSQLAllocEnv(reflongphenv)library"odbc32.dll"
functionintegerSQLFreeEnv(longhenv)library"odbc32.dll"
functionintegerSQLDataSources(longhenv,intfdirection,refstringszdsn,&
integercbdsnmax,refintegerpcbdsn,refstringszdescription,integercbdescriptionmax,refintegerpcbdescription)library"odbc32.dll"
functionintegerSQLAllocConnect(longhenv,reflonghdbc)library"odbc32.dll"
functionintegerSQLConnect(longhstmt,refstringszdsn,integerdsnlen,refstring
szuid,integeruidlen,refstringszpwd,integerpwdlen)library"odbc32.dll"
functionintegerSQLDisconnect(longhdbc)library"odbc32.dll"
functionintegerSQLAllocStmt(longhdbc,reflonghstmt)library"odbc32.dll"
functionintegerSQLTables(longhstmt,refstringsztablequalifier,integertablequalifierlen,refstringszowner,integerowerlen,refstringszname,integernamelen,
refstringsztype,integertypelen)library"odbc32.dll"
functionintegerSQLColumns(longhstmt,refstringsztablequalifier,integertablequalifierlen,refstringszowner,integerowerlen,refstringszname,integernamelen,
refstringsztype,integertypelen)library"odbc32.dll"
functionintegerSQLBindCol(longhstmt,integercolnum,integerdatatype,refstringname,longmaxlen,reflongactlen)library"odbc32.dll"
functionintegerSQLFetch(longhstmt)library"odbc32.dll"
functionintegerSQLError(longlenv,longhdbc,longhstmt,refstringsqlstate,reflongnativeerror,refstringerrormsg,integererrormsgmax,refintegererrormsglen)library"odbc32.dll"
functionintegerSQLFreeStmt(longhstmt,integerOptions)library"odbc32.dll"
更多精彩
赞助商链接