You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
检索条件 左侧分类 and (名称 or 编码 or 型号) ,如果名称、编码、型号有任意值,在构建检索条件,否则不进行检索,这样动态的查询语句如果构建?
如可能会出现如下情况:
分类=90 and (名称 like '%测试%' or 编码 like '%123%')
分类=90 and (名称 like '%测试%')
分类=90
建议增加一个OrAll函数,如下:
action = action.OrAll(qryBill.Name.Like('abc%'),qryBill.Code.Like('abc%')),构建一个 ( 表达式1 or 表达式2)
The document you expected this should be explained
Expected answer
The text was updated successfully, but these errors were encountered:
Your Question
检索条件 左侧分类 and (名称 or 编码 or 型号) ,如果名称、编码、型号有任意值,在构建检索条件,否则不进行检索,这样动态的查询语句如果构建?
如可能会出现如下情况:
分类=90 and (名称 like '%测试%' or 编码 like '%123%')
分类=90 and (名称 like '%测试%')
分类=90
建议增加一个OrAll函数,如下:
action = action.OrAll(qryBill.Name.Like('abc%'),qryBill.Code.Like('abc%')),构建一个 ( 表达式1 or 表达式2)
The document you expected this should be explained
Expected answer
The text was updated successfully, but these errors were encountered: