Home >Database >Mysql Tutorial >求教mysql触发器字段生成流水号

求教mysql触发器字段生成流水号

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 09:39:431014browse

mysql触发器

MySql主键流水号要求8位日期(20150725)+4位顺序号(0001),自增不重复

主键流水号用varchar吗?int好像插入不了12位。

求表结构和触发器的演示,谢谢!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn