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

📄 dbmerror.h

📁 该模块完成的主要功能是让用户通过调用提供的打开数据库、执行SQL语句、关闭数据库三个主要的函数
💻 H
字号:
#ifndef _DBMERROR_H
#define _DBMERROR_H

#ifndef TRUE
#define TRUE		1
#endif

#ifndef FALSE
#define FALSE		0
#endif 

#define DATABASE_SUCCESS					0

#define DBT_EMPTY_REC						601		//the record is empty
#define DBT_OPEN_DB_FAILED					602   	//this database  format is error
#define DBT_EXECUTE_FAILED					603  	//failed to execute SQL
#define DBT_CLEAN_RECORD_FAILED			604  	//failed to clean  record Set
#define DBT_RECORD_COUNT_FAILED   			605  	//failed to count  records of the record
#define DBT_FIELD_COUNT_FAILED   			606  	//failed to count  fields of the record
#define DBT_FIELD_NUM_OVER_STEP   			607  	//the given field number  is overflow 
#define DBT_GET_FIELD_NUM_FAILED   		608  	//failed to get the field number by fieldname
#define DBT_MPOS_OVER_STEP  			       609  	//the given record number is  overflow
#define DBT_POSITION_IS_FIRST				610  	//the record pointer is at the begin of records
#define DBT_POSITION_IS_LAST				611  	//the record pointer is at the end of records
#define DBT_FIELDNAME_NOT_EXIST			612  	// parameter  not exist.
#define DBT_DATABASE_IS_CLOSE				613  	//this database is closed
#define DBT_OPEN_DLL_FAILED				614		//open sqlite.dll failed
#define DBT_SQLITE_ERROR        				615     	//SQL error or missing database 
#define DBT_SQLITE_INTERNAL     				616    	//An internal logic error in SQLite 
#define DBT_SQLITE_PERM         				617   	//Access permission denied 
#define DBT_SQLITE_ABORT        				618    	//Callback routine requested an abort 
#define DBT_SQLITE_BUSY         				619    	//The database file is locked 
#define DBT_SQLITE_LOCKED      				620   	//A table in the database is locked 
#define DBT_SQLITE_NOMEM        				621    	//A malloc() failed 
#define DBT_SQLITE_FULL        				622    	//Insertion failed because database is full 
#define DBT_SQLITE_CANTOPEN    				623    	//Unable to open the database file 
#define DBT_SQLITE_PROTOCOL    				624    	//Database lock protocol error 
#define DBT_SQLITE_MISMATCH    				625   	//Data type mismatch
#define DBT_ERROR_POINTER_NULL			626 		// pointer in parameter  is NULL.
#define DBT_OPEN_DLL3_FAILED				627		//open sqlite3.dll failed

#endif



⌨️ 快捷键说明

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