【发布时间】:2010-10-15 05:17:52
【问题描述】:
MySQL(特别是 5.0)有没有办法让 auto_increment 字段的值基于分组列?
例子:
id name group_field
1 test 1
2 test2 1
1 test3 2
2 test4 2
1 test5 3
2 test6 3
我不想通过任何“疯狂”的方法来实现这一点,但如果有必要的话。
【问题讨论】:
标签: mysql auto-increment