ROWCOUNT_BIG (Transact-SQL)
Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance
Returns the number of rows affected by the last statement executed. This function operates like @@ROWCOUNT, except the return type of ROWCOUNT_BIG is bigint.
Transact-SQL syntax conventions
Syntax
ROWCOUNT_BIG ( )
Note
To view Transact-SQL syntax for SQL Server 2014 (12.x) and earlier versions, see Previous versions documentation.
Return Types
bigint
Remarks
Following a SELECT statement, this function returns the number of rows returned by the SELECT statement.
Following an INSERT, UPDATE, or DELETE statement, this function returns the number of rows affected by the data modification statement.
Following statements that do not return rows, such as an IF statement, this function returns 0.
See Also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho