C++连接使用MySQL的方法

时间:2021-01-19 21:44:29
【文件属性】:
文件名称:C++连接使用MySQL的方法
文件大小:52KB
文件格式:PDF
更新时间:2021-01-19 21:44:29
SQL 方法 连接 C++连接使用MySQL,供大家参考,具体内容如下 定义MySQLCon类 class MySQLCon { MYSQL mysql; public: int errornum; string errortext; public: //初始化 MySQLCon(); //关闭数据库 ~MySQLCon(); //链接数据库 bool OpenConn(const char* host,const char* username,const char* pwd,const char* dbName,unsigned port=0); void GetErrorText();/

网友评论