如何将匿名SQL参数存储在DBEAVER中?
在dbeaver 21.3.3中,我可以使用以下变量:
@set myvar= 'something'
select * from mytable where col = :myvar
但是如何为匿名SQL参数做到这一点:
select * from mytable where col = ?
在Windows |中首选项|编辑| SQL编辑器| SQL处理|参数部分|我检查了“匿名SQL参数”,并将其他参数未经触及。
现在,每次打开“绑定参数”对话框时,我都必须输入参数。 如何将这些绑定存储在脚本中?
In DBeaver 21.3.3 I can use variables like:
@set myvar= 'something'
select * from mytable where col = :myvar
But how to do this for anonymous SQL parameters:
select * from mytable where col = ?
In Windows | Preferences | Editors | SQL Editor | SQL Processing | Parameter section | I checked "Anonymous SQL parameters" and left other parameters untouched.
Now every time "Bind parameters" dialog opens and I have to type in parameters.
How can I store these bindings in script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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