I am using LLBLGEN where there is a method to execute a query as a scalar query
. Googling gives me a definition for scalar sub-query
, are they the same ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
A scalar query is a query that returns one row consisting of one column.
回答2:
For what it's worth:
Scalar subqueries or scalar queries are queries that return exactly one column and one or zero records.
Source
回答3:
A scalar method is used for aggregate functions such as max, min, sum, avg and so on. Whenever you want to return a single value after execute the query.