使用存储过程方式
bengin
[email protected](50)
[email protected]=(selectmax(right(‘user00000001‘,8<8是从后往前数,从1开始>)) from person where‘name‘like‘user%‘)+1
[email protected]=‘user#‘+right(‘0000000‘[email protected],7)
[email protected]
end
时间: 2024-10-13 09:32:53