SQL Rowcount vs Top

前端 未结 4 1940
礼貌的吻别
礼貌的吻别 2021-01-04 05:39

What is the difference between

Set Rowcount X

And

Select Top X *
From Z

in TSQL?

4条回答
  •  伪装坚强ぢ
    2021-01-04 05:51

    Top can do a few more things for you. For one, you can specify a percentage, instead of an integer. You can also handle situations where ties in column values occur.

    http://technet.microsoft.com/en-us/library/ms189463.aspx

提交回复
热议问题