my $sql = "INSERT INTO $db.$table (category) SELECT $oldtable.category FROM $oldtable" ;