上传者: doorsky123
|
上传时间: 2022-02-20 19:57:23
|
文件大小: 1.01MB
|
文件类型: -
支持最新的mysql5.1.30版本
内有delphi详细的demo代码,并有详细注解
Mysqlsdk.dll 还可供C代码的调用 采用stdcall
Mysqlsdk.dll 共包含9个函数 详细说明见Mysqlsdk
function SQL_Init(): Pointer; stdcall; external SDK;
procedure SQL_Clear(sqllib: Pointer);stdcall; external SDK;
function SQL_LastError(sqllib: Pointer):LongInt;stdcall; external SDK;
function SQL_Version(sqllib: Pointer; nType: Byte):PAnsiChar;stdcall; external SDK;
function SQL_Connect(sqllib: Pointer;host, user, passwd, db:PAnsiChar; port: LongInt=3306): LongInt;stdcall; external SDK;
function SQL_ClientCmd(sqllib: Pointer; cmd:LongInt; names:PAnsiChar;lpBack:Pointer; UserData:LongInt):LongInt;stdcall; external SDK;
procedure SQL_SelectIni(sqllib: Pointer;cn1,cn2,cn3,cn4,cn5:Byte);stdcall; external SDK;
function SQL_Select(sqllib: Pointer; sql:PAnsiChar; otherCmd:Byte; lpBack:Pointer; UserData:LongInt): LongInt;stdcall; external SDK;
function SQL_Query(sqllib: Pointer; sqlLine: PAnsiChar):LongInt;stdcall; external SDK;