如何使用数组中的参数动态创建查询?
输入 - [“ eq,“ comp”,....“”](可以是1至n值的值),
基于数组中的输入值数量,应构建条件数。如果有3个参数,然后三个条件等。
输出 - “从eq = true and comp = true的帐户中选择名称”
Input - ["eq,"comp",....""] (can be 1 to n number of values)
Based on the number of input values in the array, number of conditions should be built. If there are 3 params, then three AND conditions, etc.
Output - "SELECT Name FROM Account WHERE Eq = true AND comp = true"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)