为什么会在SELECT查询中发生这种情况 [英] Why is this happening in a SELECT Query

查看:82
本文介绍了为什么会在SELECT查询中发生这种情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在select查询中用逗号分隔列。如果您错过了逗号,它将处理查询,就像分配了别名一样。这是正常的吗? 

Columns are separated by commas in the select query. If you miss a comma it processes the query as if an alias is assigned. Is it normal? 

Jayaram Krishnaswamy

Jayaram Krishnaswamy

推荐答案

是的,这是预期的,合法的和语法正确的。使用"AS"使用别名分隔列/表达式是可选的。 
Yes, that is expected, legal, and syntactically correct. Using "AS" to separate a column/expression with an alias is optional. 


这篇关于为什么会在SELECT查询中发生这种情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆