What is a “Scalar” Query?

最后都变了- 提交于 2019-12-21 07:36:11

问题


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.



来源:https://stackoverflow.com/questions/20424966/what-is-a-scalar-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!