使用top 10 只查出来 前10条记录
SELECT TOP 10 * FROM DX_SessionRecord AS dsr
ORDER BY dsr.ChildOrderId
使用top 10 with ties 则将和前10条记录相同的 childorderid的记录全都查出来了
SELECT TOP 10 WITH TIES * FROM DX_SessionRecord AS dsr
ORDER BY dsr.ChildOrderId
使用top 10 只查出来 前10条记录
SELECT TOP 10 * FROM DX_SessionRecord AS dsr
ORDER BY dsr.ChildOrderId
使用top 10 with ties 则将和前10条记录相同的 childorderid的记录全都查出来了
SELECT TOP 10 WITH TIES * FROM DX_SessionRecord AS dsr
ORDER BY dsr.ChildOrderId