主键生成器[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 lsmxcool 的 blog

           end

       else if ( datediff (day, @today , @prctmpdate ) > 0 )               --若当前日期〈上次日期  ,报错

           begin

             raiserror ('the db server date erreor  check system date please!', 16, 1)

           end

  end

---------------------------------------------------------------------------------------------------------------

 

  select  @prctmpdate=predate,@tmpword=word, @tmpprenum=prenum from tbrecno where frecord=@precrecord

  select @tmpprenum=                                                                --上次编号不够四位的补够四位

              case len(ltrim(rtrim(@tmpprenum)))

本文关键:主键生成器
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top