[英]MDB2 autoprepare problem
I am using mdb2 for my website and i ran into a problem. 我在我的网站上使用mdb2,但遇到了问题。 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? 我的表中有一个order_no字段,我想要一个默认值,如LAST_INSERT_ID()+1。是否可以为mdb2-> autoExecute的此类mysql函数设置数据类型?
Thank you. 谢谢。
不可以,因为无法将(LAST_INSERT_ID()+ 1)作为占位符提供给查询,这是AutoPrepare / AutoExecute的作用 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.