SET BLOBdisplay
SET BLOBdisplay [n | ALL | OFF]
This command determines if BLOB column data is displayed in the output when a table with BLOB columns is queried.The default for this command, if no parameters are passed, is to set BLOB data off — it will not be displayed, only the blob id will be shown.
The blob id is discussed above in the section describing the [isql-command-blobdump] and [isql-command-blobview] commands.
If ALL is passed, then all BLOB sub-types will be displayed.
If a number representing the blob subtype is passed, then only BLOBs with the specific subtype will be displayed.The default is 1 for text subtypes.
SQL> -- Don't display any blob data.
SQL> set blob off;
SQL> select proj_desc
CON> from project
CON> where proj_id = 'HWRII';
PROJ_DESC
=================
85:e
SQL> -- Display all blob data.
SQL> set blobdisplay all;
SQL> select proj_desc
CON> from project
CON> where proj_id = 'HWRII';
PROJ_DESC
=================
85:e
==============================================================================
PROJ_DESC:
Integrate the hand-writing recognition module into the
universal language translator.
==============================================================================
SQL> -- Only display type 1 blob data = text.
SQL> set blob 1;
SQL> select proj_desc
CON> from project
CON> where proj_id = 'HWRII';
PROJ_DESC
=================
85:e
==============================================================================
PROJ_DESC:
Integrate the hand-writing recognition module into the
universal language translator.
==============================================================================
SQL> -- Only display blob type 7 = not text!
SQL> set blob 7;
SQL> select proj_desc
CON> from project
CON> where proj_id = 'HWRII';
PROJ_DESC
=================
85:e
==============================================================================
PROJ_DESC:
BLOB display set to subtype 7. This BLOB: subtype = 1
==============================================================================
You will notice in the last example that a message was displayed advising that we are only displaying BLOB data for subtype 7 and the BLOB data in this table is a subtype 1, so the data is not displayed.