In mysql, how does one use data tables to store and increment multiple sequences?

Source: Internet
Author: User
In mysql, how does one use data tables to store and increment multiple sequences ?? CREATETABLE 'sequence '('seq _ val' int (11) NOTNULLAUTO_INCREMENTCOMMENT sequence id, 'seq _ name' varchar (128) notnulldefacommcomment sequence name, PRIMARYKEY ('seq _ name ', 'seq _ val '),

In mysql, how does one use data tables to store and increment multiple sequences? ? Create table 'sequence '('seq _ val' int (11) not null AUTO_INCREMENT COMMENT 'sequence id', 'seq _ name' varchar (128) not null default ''comment' sequence name', primary key ('seq _ name', 'seq _ val '),

How to use data tables in mysql to store and increase multiple sequences

?

?

Create table 'sequence '('seq _ val' int (11) not null AUTO_INCREMENT COMMENT 'sequence id', 'seq _ name' varchar (128) not null default ''comment' sequence name', primary key ('seq _ name', 'seq _ val '), unique key 'idx _ seqname' ('seq _ name') ENGINE = MyISAM default charset = utf8

?

public interfaceSequenceDao {      @Insert("replace into wm_sequence(seq_name) values(#{seq_name})")      @Options(useGeneratedKeys = true,keyProperty="seq_val")      public void getSeqidByName(WmSequence seq);}

?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.