[英]Zero result returned from oci_num_rows php oracle
当我执行此查询时,oci_num_rows的结果始终为零,有谁可以帮忙吗?
$sql="SELECT * FROM apps.xx_fa_by_loc_mob where site_name ='$location' AND tag_number='$data1'";
$res= oci_parse($link, $sql);
oci_execute($res);
$var=oci_num_rows($res);
echo $var;
任何帮助将是巨大的!
这可能是原因 :
Note:
This function does not return number of rows selected! For SELECT statements this function will return the number of rows, that were fetched to the buffer with oci_fetch*() functions.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.