Home > Database > Mysql Tutorial > mysql-请各位给我个思路啊??

mysql-请各位给我个思路啊??

WBOY
Release: 2016-06-06 09:41:26
Original
1015 people have browsed it

mysqlasp.net网页设计

我要做一个订单表 里面有id字段 自增 还有个订单编号 orderNumber

订单号的格式要求是“年份后两位+月份+日期 后面顺序补三位” 请问应该怎样实现?
设置成自增肯定不行 ,因为已经有了order自增, 而且 order显示的是“1,2,3”
格式,不满足三位。那可不可以让table.orderNumber=table.order呢? 那还的在前面
加占位符? 应该怎样做啊?请各位给个思路啊?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template