从文件 MySQL - 用户输入运行 SQL?
我从命令行运行 MySQL 并执行存储在文件中的 SQL。我想要做的是提示用户输入内容,以便我可以将其包含在 SQL 脚本中?有没有办法用 MySQL 来做到这一点?
非常感谢, 詹姆斯
I'm running MySQL from the command line and executing SQL stored in files. What I'm trying to do, is prompt the user to enter input so that I can include this in the SQL script? Is there a way to do this with MySQL?
Many thanks,
James
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想从文件执行 sql 脚本,请尝试以下操作:
If you want to execute sql script from the file try this: