Top "Mysql-insert-id" questions

Retrieves the ID from the previous INSERT query on this database connection.

mysql_insert_id() returns 0

I know there are a lot of topics with the same title. But mostly it's the query that's been inserted …

php mysql return mysql-insert-id
Fatal error: Uncaught exception 'mysqli_sql_exception' with message 'No index used in query/prepared statement'

When I run the following code, I get the error saying Fatal error: Uncaught exception 'mysqli_sql_exception' with message …

php mysql mysqli mysql-insert-id sql
getting mysql_insert_id() while using ON DUPLICATE KEY UPDATE with PHP

I've found a few answers for this using mySQL alone, but I was hoping someone could show me a way …

php mysql mysql-insert-id
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'id' cannot be null?

im having difficulty inserting datas to database table from java classes. I'm getting "Internal Exception: com.mysql.jdbc.exceptions.jdbc4.…

java jpa mysql-insert-id
mysql_insert_id(); not returning value after successful row insert

I swear I have poured and poured over every other similar question on this site and others... but I think …

php mysql mysql-insert-id
How bad is using SELECT MAX(id) in MYSQL instead of mysql_insert_id() in PHP?

Background: I'm working on a system where the developers seem to be using a function which executes a MYSQL query …

php mysql concurrency mysql-insert-id
Best way to find the last inserted ID in mysql using php

Im wondering as to what the best solution is to get the last inserted ID after a mysql inquiry? I …

php mysql mysql-insert-id