21. 36. 2. Keeping Code Consistent with User-Defined Subtypes
declare
subtype newSubtype is standardType [NOT NULL];
You can create subtypes in the declaration portions of procedures, functions, anonymous blocks, packages, or package bodies.
create or replace package pkg_global
is
subtype large_string is VARCHAR2(2000);
subtype medium_string is VARCHAR2(256);
subtype small_string is VARCHAR2(10);
subtype flag_yn is VARCHAR2(1) not null; end;
/