zoukankan      html  css  js  c++  java
  • 数据库整理碎片

    USE  BookFactory
    DECLARE @TableName varchar(255) 
    DECLARE TableCursor CURSOR FOR 
    SELECT TABLE_NAME FROM information_schema.tables 
    WHERE table_type = 'base table'  and [TABLE_NAME] <> 'sysdiagrams'
    OPEN TableCursor 
    FETCH NEXT FROM TableCursor INTO @TableName 
    WHILE @@FETCH_STATUS = 0 
    BEGIN 
    DBCC DBREINDEX(@TableName,' ',90) 
    print @TableName
    FETCH NEXT FROM TableCursor INTO @TableName 
    END 
    CLOSE TableCursor 
    DEALLOCATE TableCursor
  • 相关阅读:
    my15_ mysql binlog格式从mixed修改为row格式
    my14_mysql指定时间恢复之模拟从库
    my13_mysql xtrabackup备份的时间点
    必知必会的图论算法
    leetcde37. Sudoku Solver
    leetcode36. Valid Sudoku
    leetcode52. N-Queens II
    leetcode51. N-Queens
    First Missing Positive
    Maximum Gap
  • 原文地址:https://www.cnblogs.com/staid/p/1901102.html
Copyright © 2011-2022 走看看