mysql 报错 Unknown system variable 'NOCOUNT'
时间: 2024-06-04 07:09:25 浏览: 126
mysql异常
"NOCOUNT" is not a system variable in MySQL. It is actually a keyword used in Microsoft SQL Server to control the display of the number of rows affected by a Transact-SQL statement.
If you are seeing this error in MySQL, it is likely because you are using a SQL script or query that was written for Microsoft SQL Server and is not compatible with MySQL. You should remove any references to "NOCOUNT" in your script or query and try again.
In MySQL, you can use the "SELECT ROW_COUNT()" function to determine the number of rows affected by a SQL statement.
阅读全文