$query="select * from d_sale_c_lrdj where vindent='7021221004104542875318' ";
$stmt = $PDO-> prepare ( $query );
$stmt->execute();
$num = $stmt->rowCount();
if($num >0){
echo '大于';
}
else{
echo '小于等于';
}
这个我实际查询数的数据是2条,但是输出的为什么是小于。这个是哪里错了