CI_DB_forge::create_table()

create_table($table[, $if_not_exists = FALSE[, array $attributes = array()]])

Parameters:
  • $table (string) – Name of the table to create
  • $if_not_exists (string) – Set to TRUE to add an ‘IF NOT EXISTS’ clause
  • $attributes (string) – An associative array of table attributes
Returns:

TRUE on success, FALSE on failure

Return type:

bool

Creates a new table. Usage: See Creating a table.

doc_CodeIgniter
2016-10-15 16:31:10
Comments
Leave a Comment

Please login to continue.