Questions tagged «aggregate»

汇总是指汇总分组数据的过程,通常用于统计。

4
SQLSERVER中的ListAGG
我正在尝试在SQLServer中聚合“ STRING”字段。我想找到与Oracle中相同的函数LISTAGG。 您知道如何执行相同的功能或其他方法吗? 例如, Field A | Field B 1 | A 1 | B 2 | A 我希望这个查询的结果是 1 | AB 2 | A

2
C ++ 20中的指定初始值设定项
我对c ++ 20功能之一(指定的初始化程序)有疑问(有关此功能的更多信息,请点击此处) #include <iostream> constexpr unsigned DEFAULT_SALARY {10000}; struct Person { std::string name{}; std::string surname{}; unsigned age{}; }; struct Employee : Person { unsigned salary{DEFAULT_SALARY}; }; int main() { std::cout << std::boolalpha << std::is_aggregate_v<Person> << '\n'; // true is printed std::cout << std::boolalpha << std::is_aggregate_v<Employee> << '\n'; // true …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.