Class MySQLSequenceTable


  • public class MySQLSequenceTable
    extends SequenceTable
    In order to use an auto increment column in MySQL, you must use a regular table and have an extra, dummy column. You insert a dummy value into that then read off the returned auto increment value (this value should be the primary key) as a side effect. while it is possible to have a single auto increment column as the complete table, there is no way to actually then update it. MySQL requires another column which is supplied here.

    Created by Jeff Gaynor
    on 5/9/12 at 11:50 AM