dbdelta


dbdelta ( $queries = '', $execute = true )

Parameters:
  • (string[]|string) queries Optional. The query to run. Can be multiple queries in an array, or a string of queries separated by semicolons. Default empty string.
  • (bool) execute Optional. Whether or not to execute the query right away. Default true.
Returns:
  • (array) Strings containing the results of the various update queries.
Defined at:
Change Log:
  • 6: .

Description

Modifies the database based on specified SQL statements.Useful for creating new tables and updating existing tables to a new structure.

Related Functions

add_meta, deslash, delete_meta, add_meta_box, add_metadata

Top Google Results

User discussions

wpseek mobile