@634

Oracle PL/SQL - TIPS - 更新件数確認

Advertisement

更新件数確認

sql%rowcount; 更新レコード数の確認(プログラム内合計)
declare
    count integer;
begin
    update DB set 項目 = value where 〜;

    select * from DB where 〜

    count := sql%rowcount;
end;
update の件数と select の件数を取得することができる。

Advertisement

ショートカット

634
このカテゴリのトップページに戻る
634labs
   UIコレクションギャラリー

サイト検索

Google

Web サイト内

Y!ログール