作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
下面两种方法有什么区别:
答:
select table.id from table
B:
select a.id from table a
谢谢(抱歉,如果我的问题重复)。
最佳答案
完全没有区别。
使用别名只是为了您的方便。如果您想保存,请输入完整的表名称。
另一种用法是如果您连接同一个表两次。然后您需要别名来区分表。
关于Mysql (select a.id from table a) 和 (select table.id from table) 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41830326/
我是一名优秀的程序员,十分优秀!