选定的列可以更改MySQL中的行数吗?
我有一个简单的查询,上面有几个连接,但是当我从相同的连接组中将列添加到选择中时,只需在选择中添加或删除选择列而不更改任何连接来更改行数。
I have a simple query with a couple of joins but when I add columns in to my selection from the same set of joins, number of rows change by just adding or removing columns in selection without changing any joins.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,他们可以。您的查询或称其为“简单查询”可以使关键字不同,并将列添加到类似的选择中会更改结果中的总行数。
vs
Yes they can. Your query or as you call it "simple query" can have, for example, keyword distinct and adding a column to a select like that will change the number of total rows in your result.
VS
Here is a demo