DBVisualizer 查询 snytax 添加一系列值
我需要能够在 DBVisualizer 中执行类似的操作:
WHERE Column = {12, 23, 55, 33, 22}
处执行此操作
相反,我在WHERE 列 = 12 或 列 = 23 或 列 = 55 或 列 = 33 或 Column = 22
是否有为此目的保留某种语法?后者非常繁琐,而且我不是数据库人。因此,非常感谢任何帮助!
I need to be able to do something like this in DBVisualizer:
WHERE
Column = {12, 23, 55, 33, 22}
Instead, I am doing this
WHERE
Column = 12 OR
Column = 23 OR
Column = 55 OR
Column = 33 OR
Column = 22
Is there some sort of syntax reserved for this purpose? The latter is very tedious, and I am not a database person. So any help is very much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,该语言不是 dbvisualizer 的功能,而是您要连接到的数据库的功能。上面的代码适用于我使用过的每个 RDBMS。
http://www.w3schools.com/sql/sql_in.asp
我认为这需要SQL 标签!
note that this language is not a function of dbvisualizer, but of the database you are connecting to. The above code works for every RDBMS I've ever worked with.
http://www.w3schools.com/sql/sql_in.asp
I think this wants the SQL tag!