$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();

 

相关文章:

  • 2021-12-06
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2021-08-16
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案