Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 478 Bytes

6.3.5 - Table->incr.md

File metadata and controls

18 lines (13 loc) · 478 Bytes

Table->incr

原子自增操作。

function Table->incr(string $key, string $column, mixed $incrby = 1) : int;

参数

  • $key 指定数据的key,如果$key对应的行不存在,默认列的值为0
  • $column 指定列名,仅支持浮点型和整型字段
  • $incrby 增量,默认为1。如果列为整形,$incrby必须为int型,如果列为浮点型,$incrby必须为float类型

返回值

  • 返回最终的结果数值