$rowcount = 'SELECT COUNT(1) FROM (select * from isk.edi_site where postal_code = 123456)';
$stmt= oci_parse($conn, $rowcount);
oci_execute($stmt);
$num_row = oci_fetch_assoc($stmt);
$num = count($num_row, COUNT_RECURSIVE);
echo $num;
它计算并返回数字“1”。当我在 Oracle SQL developer 中使用相同的 SQL 查询时,它会显示 4000+ 个计数。我的错误在哪里?列数效果很好..