将示例库的 记录 找几条,将其 规格 填写一下 然后运行 下面的脚本 int main() { //第一种情况,首列有空值时或者相同时,显示不全 db_run('select res_spec,res_id,res_name from res '); if(db_show_and_select('test select')) { //显示异常 db_show(); dbg(db_res(0)); } //第二种情况,首列有空值时,显示正常,但select后显示不正常 db_run('select res_spec,res_id,res_name from res '); if(db_show_and_select_as('test select')) { db_show(); //此时,只应该显示所选行的记录,但显示异常 dbg(db_res(0)); } return 1; }; 是不是不应这样使用? |