我的数据表如下所示: CustID CustName OrderNumber ...002 kelly smith 1235002 kelly smith 4512 我希望我的记录集返回如下内容: CustID CustName OrderNumber ...
001 John Smith 1234002 kelly smith 1235, 4512 如果客户有多个订单,则返回逗号分隔值形式的order# .
最近我遇到了一个问题,当我使用偏移量并在Server中进行分页时,一些记录会出现在多个页面中。SELECT A.ID, A.Col1, A.Col2, A.Status SELECT ID, Col1, Col2, Status ORDERFETCH NEXT 100 ROWS ONLY --# 100 just for sample, first page will be 0 and 100ORDER BY A.Status
ID是主键,它发生