Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我的网站使用 mdb2,但遇到了问题。我的表中有一个 order_no 字段,我希望有一个默认值,如 LAST_INSERT_ID() + 1。是否可以为 mdb2->autoExecute 的这种 mysql 函数设置数据类型?
谢谢你。
不,因为没有办法将 (LAST_INSERT_ID() + 1) 作为占位符提供给查询,这就是AutoPrepare/AutoExecute 所做的。