首页 WordPress函数大全 maybe_create_table()

maybe_create_table()

2020-05-02 / 3224阅 / 悠然

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

maybe_create_table( string $table_name, string $create_ddl )

如果数据库中不存在该表,则创建该表。

描述

此方法检查现有数据库并创建一个新>

参数

$table_name

(string)
(Required)
Database table name to create.

$create_ddl

(string)
(Required)
SQL statement to create table.

返回

(bool) If table already exists or was created by function.

大家谈论
    我的见解