自动增加mysql注册表

ttygqcqt  于 2021-06-20  发布在  Mysql
关注(0)|答案(2)|浏览(302)

我的数据库中有一个包含15条记录的表示例:

--------table---------
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |
P000112018082800.00A |

在p0001后的最后一个数字,我想它是自动递增的,以便从一个结果到这个。

P0001
P0002
P0003
P0004
P0005
P0006
P0007
P0008
P0009
P0010
P0011
P0012
P0013
P0014
P0015

所以结果一定是这样

mgdq6dx1

mgdq6dx11#

-工作台表面处理

ie3xauqp

ie3xauqp2#

--

P000112018082800.00A
    P000212018082800.00A
    P000312018082800.00A
    P000412018082800.00A
    P000512018082800.00A
    P000612018082800.00A
    P000712018082800.00A
    P000812018082800.00A
    P000912018082800.00A
    P001012018082800.00A
    P001112018082800.00A
    P001212018082800.00A
    P001312018082800.00A
    P001412018082800.00A
    P001512018082800.00A

有什么想法吗?

相关问题