PHP中占用无限时间的Oracle查询

PHP中占用无限时间的Oracle查询,php,sql,oracle,plsql,oracle-sqldeveloper,Php,Sql,Oracle,Plsql,Oracle Sqldeveloper,当我在PHP中运行下面的查询时,它需要无限的时间。 当我在sqldeveloper中运行它时,只需要几毫秒 我不知道为什么用PHP要花这么多时间 select 'This is a Fast Fix' as msg from V_MYVIEW a where a.entity_id = :entity_id and rownum=1 and a.description like 'Fa

当我在PHP中运行下面的查询时,它需要无限的时间。 当我在sqldeveloper中运行它时,只需要几毫秒

我不知道为什么用PHP要花这么多时间

select 'This is a Fast Fix' as msg
            from V_MYVIEW a
            where a.entity_id = :entity_id
                and rownum=1
                and a.description like 'Fast Fix%'
还需要提到的是,这个查询用于正常运行,突然之间,它开始占用无限的时间。 此外,此查询在dev env中正常运行

可能的错误是什么。任何帮助都将不胜感激

在PHP中运行下面的查询时也没有问题

select description as msg
                from V_MYVIEW a
                where a.entity_id = :entity_id
                    and rownum=1
                    and a.description like 'Fast Fix%'
这两个查询之间的唯一区别是

select description as msg  ==>select 'This is a Fast Fix' as msg

@Radagast81我在PHP和sqldeveloper中使用相同的用户..但是我在启动查询时在sqldeveloper中得到结果…在PHP中,当您在SQL Developer中运行它时,它一直在等待。您是在绑定:entity_id还是在输入一些特定的值?我建议您不要使用rownum,而是使用“仅获取前1行”@KevinSeymour我正在绑定实体id