adding collate utf8_general_ci

This commit is contained in:
kados 2006-07-03 16:20:40 +00:00
parent 7efff1e06c
commit 57b1a54ea8
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ my $sth=$dbh->prepare($query);
$sth->execute();
while (my @table=$sth->fetchrow_array()){
print "Altering table $table[0]\n";
my $alter_query="ALTER TABLE $table[0] CHARACTER SET UTF8";
my $alter_query="ALTER TABLE $table[0] CHARACTER SET UTF8 collate utf8_general_ci";
my $sth2=$dbh->prepare($alter_query);
$sth2->execute();
$sth2->finish();