Pergunta
I am using mdb2 for my website and i ran into a problem. I have an order_no field in my table that i would like to have a default value like LAST_INSERT_ID() + 1. Is there a datatype that can be set for this kind of mysql functions for mdb2->autoExecute?
Thank you.
Solução
No, because there is no way to provide (LAST_INSERT_ID() + 1) to the query as a placeholder which is what AutoPrepare/AutoExecute does.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow