thinkphp_3.2.3 where条件的问题

浏览:1718 发布日期:2018/09/03 分类:求助交流
一、$map =$_GET;
            $map=array_filter($map);
            $db -> where($map) -> select();
全查出全部数据,相当于:select * from table

二、$rs=$db -> where("shequ='%s'",$_GET['shequ']) -> where("jiedao='%s'",$_GET['jiedao']) -> select();SQL为什么只有一个条件?
最佳答案
评论( 相关
后面还有条评论,点击查看>>