苗苗的博客

 

SQL 学习,从今天起我要系统的学习sql命令

 

select
 
case 
  
when count(*)=0 then 1
  
else max(id)+1
end 
as sortid

from book

 

posted on 2006-07-13 10:23  msnetc  阅读(50)  评论(0)    收藏  举报

导航