Changeset 29280
- Timestamp:
- Sep 30, 2010, 9:21:35 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czartool/MySQLDb.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool/MySQLDb.pm
r29023 r29280 131 131 ####################################################################################### 132 132 # 133 # Optimizes a table 134 # 135 ####################################################################################### 136 sub optimizeTable { 137 my ($self, $table) = @_; 138 139 my $query = $self->{_db}->prepare(<<SQL); 140 OPTIMIZE TABLE $table; 141 SQL 142 143 my $success = $query->execute; 144 145 print "* "; 146 if (!$success) {print "UN";} 147 print "successfully optimized '$table' table\n"; 148 149 return $success; 150 } 151 152 ####################################################################################### 153 # 133 154 # Checks whether a certain table exists 134 155 #
Note:
See TracChangeset
for help on using the changeset viewer.
