我想知道如何为具有年份和当年订单号的订单创建一个键组合。我正在使用SQL Server。
举个例子:
2015-1
2015-2
2015-3
[...]
2015-598
2016-1
2016-2
[...]
2016-896
2017-1
2017-2
2017-3
[...]提前谢谢你
发布于 2016-12-13 05:58:31
分区row_number() (
by year(.....)
)
https://stackoverflow.com/questions/41109933
复制相似问题