String query = "SELECT *
FROM salesTable
where timeStamp BETWEEN '"+startdate+"'
AND '"+enddate+"' ( sellid LIKE '%"+search_str+"%'
OR tastemodel LIKE '%"+search_str+"%'
OR bezeichnung LIKE '%"+search_str+"%'
OR sellid LIKE '%"+lastName+" "+firstName +"%' )
ORDER BY timeStamp DESC";
如何将常规字符串搜索与两个日期之间进行组合?
答案 0 :(得分:0)
使用AND
正确组合术语。
...'" + enddate + "' AND (sellid LI...
// ^^^