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

📄 recordset.h

📁 自己写的选课系统,命令行下的...比较简陋...
💻 H
字号:
#ifndef _RECORDSET_H
#define _RECORDSET_H

#include <windows.h>
#include <odbcinst.h>
#include <sql.h>   
#include <sqlext.h>   
#include <sqltypes.h>

#include "Database.h"
#include "String.h"

class Recordset
{
public:
	Recordset(Database* pDB = NULL);
	virtual ~Recordset();

	bool Open(String strSQL);
	bool Open();
	void Close();

	bool IsOpen();
	
	bool Add();
	bool Delete();
	bool Edit();
//	virtual bool Update();

	bool Move(int RowNum);
	bool MoveNext();
	bool MovePrev();
	void SetParamNum(int num);

	String m_Where;
	String m_Order;
	int m_ParamNum;
	String *m_Param;
	String m_Table;
	int m_RowTotal;

private:
	Database* m_pDB;
	HSTMT m_stmt;
	bool isOpen;
	String m_Buffer;

//--------------------------------
	Recordset(const Recordset&);
	Recordset& operator=(const Recordset&);
};

#endif

⌨️ 快捷键说明

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