怎么用PHP执行ORCAL数据库的一条select语句,并获得总行数和某列的值

WBOY
Release: 2016-06-13 13:46:12
Original
779 people have browsed it

如何用PHP执行ORCAL数据库的一条select语句,并获得总行数和某列的值?
就是这样:
      $query   = "select   id,bt,fbsj   from   tztg   ";
      这里是执行语句;
      $rows=获取行数;
     
      for   ($i=0;$i       {
            在这里取得第一列的值;


谁帮帮我啊,急!

------解决方案--------------------
http://cn.php.net/manual/zh/ref.oci8.php

------解决方案--------------------
$sql= "select * from s_sblb ";
$result=OciParse($DBCONN,$sql);
ociexecute($result);

while (OciFetchInto ($result, &$arr))
{
$js = ' ';
echo $js;
echo "$arr[0] ";
}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template