首页 WordPress函数大全 dbDelta()

dbDelta()

2020-05-01 / 5070阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

dbDelta( string[]|string $queries = '', bool $execute = true )

Modifies the database based>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

Useful for creating new tables and updating existing tables to a new structure.

参数

$queries

(string[]|string)
(Optional)
The query to run. Can be multiple queries in an array, or a string of queries separated by semicolons.

Default value: ''

$execute

(bool)
(Optional)
Whether or not to execute the query right away.

Default value: true

返回

(array) Strings containing the results of the various update queries.

大家谈论
    我的见解