分享到: ------解决方案-------------------- 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
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn