Php ORA-01036:非法变量名称/编号-oci\u按\u名称绑定\u

Php ORA-01036:非法变量名称/编号-oci\u按\u名称绑定\u,php,sql,oracle,oracle-call-interface,Php,Sql,Oracle,Oracle Call Interface,我已经用“select*from person”测试过了,效果不错。 我想得到一份名字以“a”开头的人的名单。这可能吗?尝试将查询更新为: $letter= "A"; $statement = oci_parse($connection, "select * from person where firstname like ':letter%'"); oci_bind_by_name($statement, ':letter', $letter); oci_parse($connection,

我已经用“select*from person”测试过了,效果不错。
我想得到一份名字以“a”开头的人的名单。这可能吗?

尝试将查询更新为:

$letter= "A";
$statement = oci_parse($connection, "select * from person where firstname like ':letter%'");
oci_bind_by_name($statement, ':letter', $letter);
oci_parse($connection, "select * from person where firstname like :letter || '%'");