Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
另外,你如何索引绑定值?例如,假设我有:
oci_parse($handler, "SELECT * FROM table where something = :bv_name['index']") oci_bind_by_name($stid, ":bv_name", $varname);
该索引显然不起作用。无论如何在PHP中干净地做到这一点?
您应该绑定特定的索引:
oci_bind_by_name($stid ":bv_name", $varname['index']);
然后只:bv_name在查询中使用。
:bv_name