Snippet Name: Generate ASCII table Description: Generates the full ASCII table. Useful for reference or decoding, testing, etc. Comment: (none) Language: PL/SQL Highlight Mode: PLSQL Last Modified: March 03rd, 2009
Description: Generates the full ASCII table. Useful for reference or decoding, testing, etc.
SET serveroutput ON size 10240 DECLARE i NUMBER; j NUMBER; k NUMBER; BEGIN FOR i IN 2..15 LOOP FOR j IN 1..16 LOOP k:=i*16+j; DBMS_OUTPUT.put((TO_CHAR(k,'000'))||':'||chr(k)||' '); IF k MOD 8 = 0 THEN DBMS_OUTPUT.put_line(''); END IF; END LOOP; END LOOP; END; / show errors