CI_DB_query_builder::truncate()

truncate([$table = ''])

Parameters:
  • $table (string) – Table name
Returns:

TRUE on success, FALSE on failure

Return type:

bool

Executes a TRUNCATE statement on a table.

Note

If the database platform in use doesn’t support TRUNCATE, a DELETE statement will be used instead.

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

Please login to continue.