@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
634ブログ
このカテゴリのトップページに戻る
Incubator(Pukiwiki)
634ラボ
   UIコレクションギャラリー
   ZO-3ジェネレーター

サイト検索


Y!ログール