You are here

function dba_drop_table in Database Administration 5

Drop table and all contents from current database.

Related topics

1 call to dba_drop_table()
dba_verify_drop_form_submit in ./dba.module

File

./dba.module, line 1491
Allows administrators direct access to their Drupal database. Written by Jeremy Andrews <jeremy@kerneltrap.org>, June 2004. PostgreSQL functionality provided by AAM <aam@ugpl.de> Major security audit, porting, and maintenance by Derek…

Code

function dba_drop_table($table) {
  $query = "DROP TABLE {$table};";
  drupal_set_message(check_plain($query));
  return db_query($query);
}