首页 WordPress函数大全 check_column()

check_column()

2020-05-01 / 4820阅 / 悠然

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

check_column( string $table_name, string $col_name, string $col_type, bool $is_null = null, mixed $key = null, mixed $default = null, mixed $extra = null )

Check column matches criteria.

描述

Uses the SQL DESC for retrieving the table info for the column. It will help understand the parameters, if you do more research>

参数

$table_name

(string)
(Required)
Table name

$col_name

(string)
(Required)
Column name

$col_type

(string)
(Required)
Column type

$is_null

(bool)
(Optional)
Check is null.

Default value: null

$key

(mixed)
(Optional)
Key info.

Default value: null

$default

(mixed)
(Optional)
Default value.

Default value: null

$extra

(mixed)
(Optional)
Extra value.

Default value: null

返回

(bool) True, if matches. False, if not matching.

大家谈论
    我的见解