一番簡単なplsql



DECLARE
    tantou_count NUMBER(7);
BEGIN
    select count(*) into tantou_count from "K受担当D";
    DBMS_OUTPUT.PUT_LINE(tantou_count);
EXCEPTION
    WHEN too_many_rows THEN null;
END;
/

日本語のテーブル名は意外とわかりやすいけど、文字化けで苦しむので、
やっぱりなくしたほうがいい。