区别在于在标量上下文中的使用(如第二个脚本中使用-n)或在列表上下文中的使用(如第一个脚本所做的)。
The difference lies in using in scalar context (as -n does in the second script) or list context (as the first script does).
在此上下文中不允许使用子查询。只允许使用标量表达式。
Subqueries are not allowed in this context. Only scalar expressions are allowed.
在此上下文中不允许使用子查询。只允许使用标量表达式。
Subqueries are not allowed in this context. Only scalar expressions are allowed.
应用推荐