sqlite 3はデータベースとテーブルの状態を判断する。

862 ワード

1、         ,    rc!=0   ==0 ,               caen.db3,        sqlite3_open  !    =》rc = sqlite3_open_v2("caen.db3", &db, SQLITE_OPEN_READWRITE, NULL); 
  
 

2、 , sql zErrMsg=NULL, :no sucn table:  

	char *zErrMsg ;
	char *sqls="SELECT * FROM BaseInfo";
	char *datatable; 
	int nRow; 
	int nColumn; 
	/**        **/
	if (sqlite3_get_table(db,sqls,&datatable,&nRow,&nColumn,&zErrMsg)!=NULL) {
}