MySQL ON DUPLICATE KEY – last insert id?
I have the following query:
I have the following query:
I am trying to insert date and time into mysql datetime field. When a user select a date and time, it will generate two POST variables. I have searched internet but still not sure how to do it.
is there an alternative for mysql_insert_id()
php function for PostgreSQL? Most of the frameworks are solving the problem partially by finding the current value of the sequence used in the ID. However, there are times that the primary key is not a serial column….