字符串查询 在日期之间搜索和过滤
String query Search and filter between Dates
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";
如何在两个日期之间组合普通字符串搜索?
通过使用 AND
正确组合术语。
...'" + enddate + "' AND (sellid LI...
// ^^^
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";
如何在两个日期之间组合普通字符串搜索?
通过使用 AND
正确组合术语。
...'" + enddate + "' AND (sellid LI...
// ^^^