dongshen9686 2014-06-11 03:28
浏览 145
已采纳

从oci_num_rows php oracle返回零结果

When i execute this query the result of oci_num_rows always zero , can any one help ?!

  1. $sql="SELECT * FROM apps.xx_fa_by_loc_mob where site_name ='$location' AND tag_number='$data1'";
  2. $res= oci_parse($link, $sql);
  3. oci_execute($res);
  4. $var=oci_num_rows($res);
  5. echo $var;

any help would be great !!

  • 写回答

1条回答 默认 最新

  • dotcraq3249 2014-06-11 04:23
    关注

    This might be the reason:

    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.
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部