首页 WordPress函数大全 maybe_add_column()

maybe_add_column()

2020-05-02 / 4585阅 / 悠然

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

maybe_add_column( string $table_name, string $column_name, string $create_ddl )

将列添加到数据库表(如果尚不存在)。

描述

参数

$table_name

(string)
(Required)
The table name to modify.

$column_name

(string)
(Required)
The column name to add to the table.

$create_ddl

(string)
(Required)
The SQL statement used to add the column.

返回

(bool) True if already exists or on successful completion, false on error.

大家谈论
    我的见解