Home > Database > Mysql Tutorial > 更新数据库中表的统计信息

更新数据库中表的统计信息

WBOY
Release: 2016-06-07 14:56:35
Original
1332 people have browsed it

更新数据库中表的统计信息 无 IF EXISTS(SELECT name FROM sys.databases WHERE name=N'Test')BEGINUSE TestEXEC sp_updatestatsENDGO

更新数据库中表的统计信息
IF EXISTS(SELECT name FROM sys.databases WHERE name=N'Test')
BEGIN
USE Test
EXEC sp_updatestats
END
GO
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template