学习oracle的sql语句

来源:互联网 发布:seo关键词定位 编辑:程序博客网 时间:2024/05/01 22:07
declare d number(5);
  begin  
 select nvl(clickcount,0) into d   from tb_manager where ID=210;

 
 
    
    if d>0 then
      dbms_output.put_line(d);
      
      
      else
        
        dbms_output.put_line(d+1);
        update TB_MANAGER set CLICKCOUNT = (d+1) where ID=210;
      end if;
      
      end;
原创粉丝点击