For example, if the table desc is,
id int(11) pk auto_increment
content varchar(128)
and if i inserted (null, 'test')
how can i get the inserted new id?
the input 'test' can't be the where condition, because it is not a unique key, it can be duplicated.
Any good idea?
or do i have to redesign the table to insert some unique key for that?