我在PLSQL中用dbms_output.put_line打印消息,请问能在PLSQL中看到我输出的消息吗?如果能怎么样能看到?
declarev_yhidtb_gg_yhxx.f_yh_id%type:=11111111111;beginupdatetb_gg_yhxxsetf_yh_name='...
declare
v_yhid tb_gg_yhxx.f_yh_id %type := 11111111111;
begin
update tb_gg_yhxx set f_yh_name = 'test' where f_yh_id = v_yhid;
if SQl%found then
dbms_output.put_line(SQL%rowcount || 'Delete Ok!');
end if;
if SQL%notfound then
dbms_output.put_line('雇员编号' || v_yhid || '不存在');
end if;
end;网上查资料说用set serveroutput on;我试了可是不行啊。报【ORA-00922 缺少或无效选项】,请各位大侠帮忙。。先谢过~~ 展开
v_yhid tb_gg_yhxx.f_yh_id %type := 11111111111;
begin
update tb_gg_yhxx set f_yh_name = 'test' where f_yh_id = v_yhid;
if SQl%found then
dbms_output.put_line(SQL%rowcount || 'Delete Ok!');
end if;
if SQL%notfound then
dbms_output.put_line('雇员编号' || v_yhid || '不存在');
end if;
end;网上查资料说用set serveroutput on;我试了可是不行啊。报【ORA-00922 缺少或无效选项】,请各位大侠帮忙。。先谢过~~ 展开
2013-08-21
展开全部
set serveroutput on;declare
v_yhid tb_gg_yhxx.f_yh_id %type := 11111111111;
begin
update tb_gg_yhxx set f_yh_name = 'test' where f_yh_id = v_yhid;
if SQl%found then
dbms_output.put_line(SQL%rowcount || 'Delete Ok!');
end if;
if SQL%notfound then
dbms_output.put_line('雇员编号' || v_yhid || '不存在');
end if;
end;试试看
v_yhid tb_gg_yhxx.f_yh_id %type := 11111111111;
begin
update tb_gg_yhxx set f_yh_name = 'test' where f_yh_id = v_yhid;
if SQl%found then
dbms_output.put_line(SQL%rowcount || 'Delete Ok!');
end if;
if SQL%notfound then
dbms_output.put_line('雇员编号' || v_yhid || '不存在');
end if;
end;试试看
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询