Aggregate Function on Uniqueidentifier (GUID)

后端 未结 5 1504
日久生厌
日久生厌 2021-02-02 05:41

Let\'s say I have the following table:

category | guid
---------+-----------------------
   A     | 5BC2...
   A     | 6A1C...
   B     | 92A2...
5条回答
  •  忘掉有多难
    2021-02-02 06:29

    Aggregate functions can be used on Uniqueidentifier columns if SQL Server Version >= 2012

    expression

    Is a constant, column name, or function, and any combination of arithmetic, bitwise, and string operators. MIN can be used with numeric, char, varchar, uniqueidentifier, or datetime columns, but not with bit columns. Aggregate functions and subqueries are not permitted.

提交回复
热议问题