MySQL将默认值设置为项目自动增量键 [英] Mysql setting default value to be items auto increment key
本文介绍了MySQL将默认值设置为项目自动增量键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
只需做一个需要多个项目由AJAX重新排序的站点.
Just doing a site which requires multiple items to be reordered by AJAX.
当我在数据库中创建给定对象时,我想在创建时将position列设置为行的主键的值.
When I create a given object in the database, I want to set the position column to the value of the rows' primary key upon creation.
请问我该怎么做?
推荐答案
查看全文