简要说明
使用条件
安装
创建
配置
部署生产环境
方法
关于表格转换html字体问题
控制器
命令行运行
会话
响应
定义
变量
引用
循环
条件
方法调用
mysql方法
连接数据库
查询数据
添加数据
更新数据
删除数据
查询表达式
where
table
alias
field
limit
page
order
group
having
join
distinct
lock
getsql
get_exec_cursor
get_query_cursor
聚合查询
子查询
原生查询
事务操作
分布式数据库
长连接
mongo方法
任务队列
使用
onConnect
onMessage
onClose
sendToUid
sendToGroup
send_all
send_client
bindUid
unbindUid
joinGroup
leaveGroup
ungroup
getClientIdCountByGroup
getAllClientIdCount
getGroupCount
getGroupname
getuid
getGroup
##更新数据 使用 update 方法向数据库更新数据 ``` mysql('table').where('user_id',1).update({'user_id':2}) ``` 最终生成的SQL语句是: ``` UPDATE table SET user_id = '2' WHERE user_id = '1' ``` update 方法更新成功后返回1,失败后返回0 ##字端增减 使用 setinc 方法数据库字端 (该字段是数字的情况下) ``` mysql('table').where('id',1).setinc({'balance':2}) ``` 使用 setinc 方法数据库字端 (该字段是数字的情况下) ``` mysql('table').where('id',1).setinc({'balance':-2}) ``` 以上方法分别对table表的balance字段进行加2和减2
kcweb官方开发手册
开发版
开发版
6.4.28
6.4.21
6.4.17
6.4.15
6.4.9
6.4.8
6.4.4
6.2
6.1
5.330
5.328
登录
 {{data.name}}
##更新数据 使用 update 方法向数据库更新数据 ``` mysql('table').where('user_id',1).update({'user_id':2}) ``` 最终生成的SQL语句是: ``` UPDATE table SET user_id = '2' WHERE user_id = '1' ``` update 方法更新成功后返回1,失败后返回0 ##字端增减 使用 setinc 方法数据库字端 (该字段是数字的情况下) ``` mysql('table').where('id',1).setinc({'balance':2}) ``` 使用 setinc 方法数据库字端 (该字段是数字的情况下) ``` mysql('table').where('id',1).setinc({'balance':-2}) ``` 以上方法分别对table表的balance字段进行加2和减2
获取
登录
获取
确认设置密码