PHP怎么操作oracle语句
时间:2011-09-22
来源:互联网
请资深人士介绍下!!!
作者: liudong 发布时间: 2011-09-22
php操作oracle跟操作mysql区别不大,下面是一个实例代码
PHP code
记得要把php_oci8扩展打开
PHP code
public function query($selectsql){ $this->conn=oci_connect($this->_userName,$this->_password,$this->_dbName,$this->_charSet); $stmt = oci_parse($this->conn,$selectsql); oci_execute($stmt); while($row=oci_fetch_array($stmt,OCI_ASSOC+OCI_RETURN_LOBS)){ $qustionresult[]=$row; } oci_close($this->conn); return $qustionresult; }
记得要把php_oci8扩展打开
作者: A82168506 发布时间: 2011-09-22
不懂 能再详细点嘛 第一次用orcle开发
作者: liudong 发布时间: 2011-09-22
public function query($selectsql){
$this->conn=oci_connect($this->_userName,$this->_password,$this->_dbName,$this->_charSet);
$stmt = oci_parse($this->conn,$selectsql);
oci_execute($stmt);
while($row=oci_fetch_array($stmt,OCI_ASSOC+OCI_RETURN_LOBS)){
$qustionresult[]=$row;
}
oci_close($this->conn);
return $qustionresult;
}
$this->conn=oci_connect($this->_userName,$this->_password,$this->_dbName,$this->_charSet);
$stmt = oci_parse($this->conn,$selectsql);
oci_execute($stmt);
while($row=oci_fetch_array($stmt,OCI_ASSOC+OCI_RETURN_LOBS)){
$qustionresult[]=$row;
}
oci_close($this->conn);
return $qustionresult;
}
作者: fuhualangman 发布时间: 2011-09-22
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28