";
//BEGIN - Table Type - 2 May 2001 - Robbat2
if(isset($submittype))
$result = mysql_db_query($db, "ALTER TABLE $table TYPE=$tbl_type") or mysql_die();
$result = mysql_db_query($db, "SHOW TABLE STATUS LIKE '$table'") or mysql_die();
$row = mysql_fetch_array($result);
$tbl_type=strtoupper($row['Type']);
?>
0)
{
?>
>
|
|
|
|
";
if($row["Key_name"] == "PRIMARY")
{
$sql_query = urlencode("ALTER TABLE ".$table." DROP PRIMARY KEY");
$zero_rows = urlencode($strPrimaryKey." ".$strHasBeenDropped);
}
else
{
$sql_query = urlencode("ALTER TABLE ".$table." DROP INDEX ".$row["Key_name"]);
$zero_rows = urlencode($strIndex." ".$row["Key_name"]." ".$strHasBeenDropped);
}
?>
|
|
|
$strDrop";?> |
";
}
print "
\n";
print show_docu("manual_Performance.html#MySQL_indexes");
}
?>