国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

數(shù)據(jù)庫(kù)MySql類庫(kù)系列(三)-QueryOperatorUpdate

2019-11-06 06:32:41
字體:
供稿:網(wǎng)友

第三個(gè)工具類,QueryOperatorUpdate

負(fù)責(zé)處理:直接執(zhí)行sql方式下的,增、刪、改的需求。

用到了之前的DBOperator,主要是封裝其ExecQuery接口。

代碼很簡(jiǎn)單

QueryOperatorUpdate.h

#ifndef __QueryOperatorUpdate_H__#define	__QueryOperatorUpdate_H__struct st_MySQL;typedef struct st_mysql MYSQL;namespace common{	namespace db{		class QueryOperatorUpdate		{		public:			QueryOperatorUpdate();			~QueryOperatorUpdate();			void Release();			// 執(zhí)行sql			bool DoOperator(MYSQL *connect, const char *sql);		};	}}#endifQueryOperatorUpdate.cpp

#include "QueryOperatorUpdate.h"#ifdef WIN32#include <winsock2.h>#endif#include <stdio.h>#include <mysql.h>#include <string.h>#include <stdarg.h>#include "DBOperator.h"namespace common{	namespace db{		QueryOperatorUpdate::QueryOperatorUpdate()		{		}		QueryOperatorUpdate::~QueryOperatorUpdate()		{			Release();		}		void QueryOperatorUpdate::Release()		{		}		bool QueryOperatorUpdate::DoOperator(MYSQL *connect, const char *sql)		{			if (NULL != connect && NULL != sql)			{				return DBOperator::ExecQuery(connect, sql);			}			else			{				return false;			}		}	}}


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 白山市| 且末县| 仙桃市| 高尔夫| 江源县| 视频| 平罗县| 张家口市| 镇安县| 黑山县| 新干县| 巴塘县| 宁强县| 井研县| 油尖旺区| 正阳县| 德钦县| 阿勒泰市| 邯郸市| 衡水市| 深州市| 昌宁县| 林州市| 池州市| 阜南县| 深泽县| 佛冈县| 吕梁市| 舞阳县| 忻州市| 西城区| 武穴市| 丹凤县| 西和县| 沙河市| 大洼县| 石门县| 宜春市| 昌宁县| 库尔勒市| 麻城市|