如何把emp_card批量改成
00003、00004、00005......一直往下排
我想了下写程序很简单实现。
用sql语句怎么实现?
------解决方案--------------------
- SQL code
declare @i intset @i=0update tb set emp_card=right([email protected],5),@[email protected]+1
declare @i intset @i=0update tb set emp_card=right([email protected],5),@[email protected]+1