举例如下:
SELECT ROW_NUMBER()OVER(ORDER BY (SELECT 0)) AS ROWNUM,* FROM YXHIS2018..TBMZGHMX201801 --不排序SELECT ROW_NUMBER()OVER(ORDER BY DCSNY DESC) AS ROWNUM,* FROM YXHIS2018..TBMZGHMX201801 --排序