Using codeigniter and oci8 for a project.
$this->db->insert_id(); would would perfect for getting the last auto-incremented id of the previous query, but it does not seem to work on an oracle database.
Any help is appreciated. I would LOVE to use mysql, but an oracle database is a requirement.
$this->db->insert_id(); for codeigniter, is just like php’s mysql_insert_id()
See here:
Get the auto-generated ID after an insert
You could also look at using a DB interface layer like PDO