function dba_mysql_describe_table in Database Administration 7
Generate code for describing a table.
File
- database/
mysql.inc, line 20 - Provides database driver specific commands.
Code
function dba_mysql_describe_table($table) {
$conn = db_set_active(variable_get('dba_active_database', 'default'));
$rows = db_query("DESCRIBE {$table};");
db_set_active($conn);
return $rows;
}