【发布时间】:2013-12-02 18:20:19
【问题描述】:
是否可以在 PHP 中检索最后插入的 Oracle 行的 rowid?我正在尝试:
$statement = oci_parse($conn, "INSERT INTO myTable (...) VALUES ( ...)");
$results = oci_execute($statement);
while($row = oci_fetch_assoc($statement)) {
$rowid = $row['ROWID'];
}
没有运气。我在 fetch 行收到错误 define not done before fetch 或 execute and fetch。
【问题讨论】:
标签: php oracle oracle-call-interface