Quote:
|
Originally Posted by hYph3n
is there any way that i can make function which return a value for the next PK of a particular table ?
|
there is, but i cannot tell you because i think what you are trying to do is wrong
as shammat suggested, do not mess around with auto_increment numbers
let the database assign them, and then leave them alone
if you need the PK of a row, get it
after insertion using the LAST_INSERT_ID function