• 周六. 4月 27th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

thinkphp3.2.3 数据库增删改查

admin

11月 28, 2021

版本3.23

1. 多表查找一条数据

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.增加一条数据

$data = array();
M('a表')->add($data);

6.删除一条数据

M('a表')->where('条件')->delete($data);

7.修改一条数据

M('a表')->where('id=5')->save();

  

《thinkphp3.2.3 数据库增删改查》有2个想法
  1. Gut Vita™ is a daily supplement that helps consumers to improve the balance in their gut microbiome, which supports the health of their immune system. It supports healthy digestion, even for consumers who have maintained an unhealthy diet for a long time. https://gutvitabuynow.us/

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注