public update ( string $key, array | null $data = null, boolean $and = true, mixed $tablePrefix = null ) : boolean | ||
$key | string | eg 'user-uid-$uid' 如果条件是通用whereXX()、表名是通过table()设定。这边可以直接传$data的数组 |
$data | array | null | |
$and | boolean | 多个条件之间是否为and true为and false为or |
$tablePrefix | mixed | 表前缀 不传则获取配置中配置的前缀 |
Результат | boolean |