db_create_table

6 database.inc db_create_table(&$ret, $name, $table)
7 database.inc db_create_table($name, $table)
8 database.inc db_create_table($name, $table)

Create a new table from a Drupal table definition.

Parameters

$ret: Array to which query results will be added.

$name: The name of the table to create.

$table: A Schema API table definition array.

Related topics

251 functions call db_create_table()

File

drupal/includes/database.inc, line 547
Wrapper for database interface code.

Code

<?php
function db_create_table(&$ret, $name, $table) {
  $statements = db_create_table_sql($name, $table);
  foreach ($statements as $statement) {
    $ret[] = update_sql($statement);
  }
}
?>