$taskInfo = $db->query("select * from task where id=".$tmpTable[‘task_id‘])->fetch(PDO::FETCH_ASSOC);
$firstCount = $db->query("select count(*) as count from ".$tmpTable[‘temp_table‘])->fetch(PDO::FETCH_ASSOC)[‘count‘];
原文:https://www.cnblogs.com/CWQPHP/p/10643962.html