批量mysql查询编辑器
我在 PHP 文件中有一组 MySQL 查询。我想批量编辑这些查询,例如向所有查询添加额外的 WHERE
或 UPDATE
子句。
有没有现有的软件可以做到这一点?
I have a set of MySQL queries in PHP files. I want to mass-edit these queries, e.g. add an extra WHERE
or UPDATE
clause to all of them.
Is there any existing software that can do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论您选择如何实现 SQL 查询执行,您都不太可能找到能够解释的东西,部分原因是即使使用开箱即用的 PHP 选项,也有大量方法。
因此,我非常怀疑您需要搜索正在使用的任何查询执行函数/方法并从那里回溯。 (我怀疑你无论如何都需要这样做,因为简单地“添加一个子句”无论如何都需要人类的判断/解释才能实现。)
希望你选择的 IDE 将有一个很好的项目/工作空间范围的搜索,这将使这成为一个相当好的选择。琐碎但有些耗时的任务。
It's very unlikely that you'll find something that's capable of interpreting however you've chosen to implement your SQL query execution, in part because there's a plethora of approaches even using the out of the box PHP options.
As such, I very much suspect you'll need to search for whatever query execution function/method is in use and backtrack from there. (I suspect you'd need to do this anyway, as simply "adding a clause" would require human judgement/interpretation to achieve anyway.)
Hopefully your choose IDE will have a nice project/workspace-wide search that will make this a fairly trivial, if somewhat time-consuming, task.