#ifndef _DATABASE_DEFINE_H #define _DATABASE_DEFINE_H namespace baosight { #define DB2 1 #define ORACLE 2 #define SQLSRV 3 #define DB_TYPE ORACLE #if DB_TYPE==DB2 const int NO_RECORD = 100; //没有数据库记录 #elif DB_TYPE==ORACLE const int NO_RECORD = 1403; //没有数据库记录 #else #error DATABASE TYPE NOT SET #endif enum DATABASE_TYPE { DATABASE_DB2 = 0, DATABASE_ORACLE = 1 }; }; #endif