模糊查询查不出结果
string ls_c_sql,ls_str
ls_str = trim(sle_1.text)
ls_c_sql = 'select * from talbe1 where id8 = ' + "'" + ls_c_date + "' " + ' and id3 like ' + "' %" + ls_str + "%' "
dw_1.setsqlselect(ls_c_sql)
dw_1.retrieve()
table1中有满足条件的数据,怎么就是查不出来呢,ls_c_sql我用messagebox显示出来没有错啊,我在
db administration直接查询是有数据的,另外,去掉+ ' and id3 like ' + "' %" + ls_str + "%' "
事没问题的。