0
点赞
收藏
分享

微信扫一扫

TP多条件查询

夜空一星 2022-05-07 阅读 137

$stcount = M("Results_all")->alias('a')

->join("s_test_name as b on a.subject = b.sid and a.testsets = b.number",'left')

->where("a.subject = $subject and b.name = '$testsname' ")->field("count(a.number) as cnum")

->select();

你要保守你心,胜过保守一切。

作者:刘俊涛的博客​​




举报

相关推荐

0 条评论