What is a “Scalar” Query?

2020-07-02 10:35发布

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 ?

3条回答
We Are One
2楼-- · 2020-07-02 11:12

A scalar query is a query that returns one row consisting of one column.

查看更多
叼着烟拽天下
3楼-- · 2020-07-02 11:15

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.

查看更多
时光不老,我们不散
4楼-- · 2020-07-02 11:18

For what it's worth:

Scalar subqueries or scalar queries are queries that return exactly one column and one or zero records.

Source

查看更多
登录 后发表回答