跳到主要内容

update

更新数据

声明

bool update(string table_name, string key_name, string key, map data, mixed condition, bool allow_insert = false)

参数

参数名描述
table_name表名
key主键字段对应的值
data待更新的数据

返回值

操作成功返回true,反之返回false

使用方式

返回文档