版本:3.2.3
内容:数据库操作
- 多表查找一条数据
M(‘a表’)->join(“b表 on b表.id=a表.id”)->where(‘条件’)->find();
2.查找一条数据
M(‘a表’)->where(‘条件’)->find();
3.多表查询所有数据
M(‘a表’)->join(“b表 on b表.id=a表.id”)->where(‘条件’)->select();
4.查询所有数据
M(‘a表’)->where(‘条件’)->select();
5.增加一条数据
M(‘a表’)->add($data);
6.删除一条数据
M(‘a表’)->where(‘条件’)->delete($data);
7.修改一条数据
M(‘a表’)->where(‘id=5’)->save();
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!