ITPub博客

首页 > 数据库 > 数据库开发技术 > begin plsql

begin plsql

原创 数据库开发技术 作者:terryisme 时间:2009-10-21 09:41:03 0 删除 编辑
Declare
v_model_name varchar(40);
begin
select bs.parent into v_model_name
from sfis1.c_bom_structure_t bs
where bs.parent ='SCVCD-SASA'
and bs.bubble_number = 300
and rownum =1;
if v_model_name is not null then
Dbms_Output.put_line(v_model_name);
else
Dbms_Output.put_line('No Model Found now');
end if;
end;[@more@]Declare
v_model_name varchar(40);
begin
select bs.parent into v_model_name
from sfis1.c_bom_structure_t bs
where bs.parent ='SCVCD-SASA'
and bs.bubble_number = 300
and rownum =1;
if v_model_name is not null then
Dbms_Output.put_line(v_model_name);
else
Dbms_Output.put_line('No Model Found now');
end if;
end;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/93029/viewspace-1027999/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: plsqlexample
下一篇: bi
请登录后发表评论 登录
全部评论

注册时间:2009-02-23

  • 博文量
    142
  • 访问量
    632454