oracle控制语句学习一——if elsif else控制语句

来源:互联网 发布:楚楚街和淘宝哪个好 编辑:程序博客网 时间:2024/06/11 08:10
declarev_count number(6,2);beginselect count(1) into v_count from communitytype twhere t.community_type_id = 'AcademicRes';if v_count > 1thendbms_output.put_line('查询到多条');elsif v_count > 0thendbms_output.put_line('查询一条');elsedbms_output.put_line('失败');end if;end;
0 0
原创粉丝点击