1,078
社区成员
发帖
与我相关
我的任务
分享
int i
string ls_col1[] = {"order_custom = ", "order_id like '%", "order_id like '%", "order_id like '%"}
string ls_col2[] = {"", "%'", "%'", "%'"}
string ls_data[]
string l_sql= " where 1=1 "
ls_data = {sle_1.text,sle_2.text,sle_3.text,sle_4.text}
for i = 1 to upperbound(ls_col1)
if not(ls_data[i] = '' or isnull(ls_data[i])) then l_sql += " and " + ls_col1[i] + ls_data[i] + ls_col2[i]
next