有下面两张表
部门表A
入库表B
我现在想把入库表中的into_dpID 字段和部门表中ID字段一样的查出来并且结果是要显示dpName 这个字段的值
select a.dpName from 部门表A a inner join 入库表B b on a.ID=b.into_dpID
select * from 入B where into_dpId='0'
dpupID 的值 和 b的into_dpId 是相等
只要查询出来 into_dpId='0' 的东西就是属于 润安大夏的。
在需要入库B的字段就
$s="select * from 入B where into_dpId='0'";
$sr=$mysqli->query($s);
while($r=$sr->fetch_assoc()){
echo $r['into_time'];//循环所有符合into_dpId='0'的这个循环出所有润安大夏的的into_time
}
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号