begin
    select col1 into values from table_name;    --insert, update
    exception
       when others then
          .......
end;

解决方案 »

  1.   

    吓?用others吗?出错呀,能完整地说说这三个例子呢?
      

  2.   

    我要的就是那个Exception的表呀!为什么我这样写,却没有得到正确的结果呢?         open AllInf for
             select c_xianlu  from T_cheliang where c_cardno=CardNo;         begin
             exception when no_data_found then
             BusLine:='0';
             end;
    如果不加exception的话就出错了,但加了之后虽然不出错但也没有运行BusLine:='0';这一句了.
      

  3.   

    faq中有
    http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=103401