2012年10月31日

[收集]如何实现自编号

摘要: if object_id('T') is not null drop table Tgocreate table T(id varchar(10) primary key ,name varchar(10))go--用触发器完成create trigger tr_T_insert on Tinstead of insertasbegin declare @i int select * into # from inserted select @i=isnull(max(id),1000000) from T update # set id=right(10000... 阅读全文

posted @ 2012-10-31 19:23 binbr 阅读(123) 评论(0) 推荐(0)

导航