Was doing a pivot report in SQL*Plus, counting number of records with status 'ERROR' and encounter hex values in the results. It can be reproduced on 11g using the following:
SQL> select 1 error from dual;
ERROR
----------
##########
Then I tested with a few variety:
SQL> select 1 errors from dual;
ERRORS
----------
1
SQL> select 'a' error from dual;
ERROR
-----------------------------------------------------------------
a
SQL> select 'a' errors from dual;
E
-
a
Seems like having a column named 'error' does weird stuffs to your result in SQL*Plus as this problem does not happen in SQL developer. Does anyone has an explanation? There seems no workaround except renaming it..
Looks like the
NUMBER
format for columnERROR
is set by default inSQL*Plus
.ATTRIBUTE
command shows the format of this.So, lets clear it.
Now,
Full Script: