[英]Retrieving BLOB data from an oracle table using select * with php/PDO
Is it possible to get the values of a BLOB/CLOB columns in an oracle database table that has more than 1 BLOB/CLOB column and most likely more that one row of data using a SELECT * FROM table_name
Query. 是否可以使用
SELECT * FROM table_name
查询来获取具有多个BLOB / CLOB列且最有可能超过一行数据的Oracle数据库表中的BLOB / CLOB列的值。
example of such a table will be made as follows 这样的表格的例子如下
CREATE table_name ( col1 CLOB, col2 BLOB );
example of the kind of query i'm trying to understand is 我想了解的查询类型的示例是
SELECT * FROM table_name
In all the tutorials/Articles i have reviewed while trying to solve this problem, the examples are only limites to selecting one cell ie SELECT column FROM table_name WHERE id = ?
在我尝试解决此问题的所有教程/文章中,示例仅限于选择一个单元格,即
SELECT column FROM table_name WHERE id = ?
Thanks 谢谢
I think the PDO_OCI module doesn't fully support those data types. 我认为PDO_OCI模块不完全支持这些数据类型。 See the comments here:
在这里查看评论:
http://php.net/manual/en/ref.pdo-oci.php http://php.net/manual/zh/ref.pdo-oci.php
After pulling my hair out for a day, it turned out to be a CLOB column in Oracle that caused the strange behaviour in PHP.
经过一天的努力,结果发现它是Oracle中的CLOB列,导致PHP出现了奇怪的行为。 I assume this extension doesn't fully support them.
我认为此扩展程序不完全支持它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.