$User = M("homeworkStatistics"); $condition['name'] = 'thinkphp'; $condition['status'] = 1; $User->where($condition)->select(); 最后生成的SQL语句是
A、SELECT * FROM think_homeworkStatistics WHERE `name`='thinkphp' AND condition=1
B、SELECT * FROM think_homeworkStatistics WHERE `condition`='thinkphp' AND status=1
C、SELECT * FROM think_homeworkStatistics WHERE `condition`='thinkphp' OR condition=1
D、SELECT * FROM think_homeworkStatistics WHERE `name`='thinkphp' AND status=1