$sql = "show columns from my_table"; execute while (there are $field_names) { print "" }