Let's take a simple table where one of the keys is a timestamp with default value set to CURRENT_TIMESTAMP.
Is there a way to get this generated timestamp after the insert? I need an analogical solution to mysql_insert_id which you use with auto_increment.
Is that possible at all? I know it's not the safest practice, but to be honest I'm just curious at the moment. I already do it without using CURRENT_TIMESTAMP as a key - I just generate it in code and pass as a standard parameter.