1 --SQL SERVER中的流水号创建
2 create table books
3 (
4 no int identity(1,11),
5 bid as right(replicate('0',5) + cast([no] as varchar),6),
6 [name] varchar(50)
7 );
8 insert into books(name) values('t1');
posted on 2012-02-29 11:38  isforcode  阅读(178)  评论(0编辑  收藏  举报