JQuery 中的简单 SQL 查询生成器
我试图找到一个类似于 SQL 查询生成器插件的简单查询生成器界面 http://plugins.jquery .com/project/SQL_QUERY_BUILDER,但更简单。
我喜欢它的功能,但我只想定义字段、类型,也许还有一些额外的信息(最小值和最大值),并生成一个符合条件的列表。还有简单的 AND 和 OR。
示例 GUI 类似于:
[SELECT BOX(和/或)] | [选择框(字段名称)] | [选择框(比较)] |价值| [按钮添加]
部门 = '销售'
并且名称如“%SMITH%”
JQuery 或其他 Javascript 框架中是否存在这样的插件?
谢谢!
马特
I am trying to find a simple query builder interface similar to the SQL Query Builder plugin at http://plugins.jquery.com/project/SQL_QUERY_BUILDER, but simpler.
I like it's functionality, but I just want to define the fields, the types, and perhaps some extra information (min and max value) and have a list generated that match the criteria. Simple ANDs and ORs as well.
Example GUI would be something like:
[SELECT BOX (and/or)] | [SELECT BOX (FIELD NAME)] | [SELECT BOX (Comparison)] | VALUE | [BUTTON ADD]
department = 'SALES'
AND name like '%SMITH%'
Does a plugin like this exist in JQuery or another Javascript Framework?
Thanks!
Matt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我自己已经搜索了一段时间,因为我需要同样的东西。我发现这个 expbuilder 项目 似乎非常接近我们所需要的。它没有得到积极开发,而且看起来也不完善。您可以在此处尝试一下用户界面。
I've been searching for a while myself now, since I need the same thing. I found this expbuilder project that seems to be very close to what we need. It's not actively developed and it doesn't look polished. You can play around with the UI here.
你可以使用 jquery 查询生成器,
https://github.com/mistic100/jQuery-QueryBuilder/
u can use jquery query builder ,
https://github.com/mistic100/jQuery-QueryBuilder/