top-think / top-think/think-orm

查询oracle的数据库里面有字段是CLOB类型,如何正确获取数据

Open
#582 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Oracle
Dominant language
PHP
Stars
437
Forks
188
PR merge metrics
No merged PRs in 30d

Description

查询oracle的数据库里面有字段是CLOB类型,如何正确获取数据
查询的是多条数据,
打印返回结果
array(
['colb'] => Resource id #454
['name'] => 小明
['mobile'] => 13333333333
)
如果是单条能用stream_get_contents 函数来获取,如果是多条该怎么处理。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No project file or test is named. Start by reproducing a multi-row query containing an Oracle CLOB and inspect how the ORM returns each row; done means every CLOB value can be read as usable data rather than a resource identifier, including when multiple rows are returned.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, sql
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.