⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lrunsql.h

📁 LRunSql类是我在做数据库编程方面常借鉴的一个类
💻 H
字号:
// LRunSql.h: interface for the LRunSql class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LRUNSQL_H__42F09E7F_D421_45BC_80EC_98CAF58436A3__INCLUDED_)
#define AFX_LRUNSQL_H__42F09E7F_D421_45BC_80EC_98CAF58436A3__INCLUDED_
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF", "adoEOF") rename("BOF","adoBOF")
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class LRunSql  
{
public:
	LRunSql();
    ~LRunSql();

bool RunSQL(CString sql);
	bool CheckSQLResult(CString sql);
public:
	static _ConnectionPtr m_database;

	static bool RollbackTrans();
	static bool CommitTrans();
	static bool BeginTrans();
	static bool Close();
	static bool InitConnectPtr();
	static bool ConnectDataBase();

	_RecordsetPtr m_recordset;
};


#endif // !defined(AFX_LRUNSQL_H__42F09E7F_D421_45BC_80EC_98CAF58436A3__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -