有幾個篩選條件,如果篩選條件為空,則顯示全部
uj5u.com熱心網友回復:
從資料庫里面來的資料還是grid上的靜態資料。uj5u.com熱心網友回復:
這個就是查詢陳述句做條件限制,非空項作為條件,為空就不作為條件。比如:var
strSql: string;
begin
strSql := 'select * from table where 1>0';
if xxx<>'' then strSql := strSql+' and fieldXXX like ''%'+xxx+'%''';
...
end;
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/15916.html
標籤:語言基礎/算法/系統設計
下一篇:MySQL的事務模擬銀行轉賬
