Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: sqlplus: dump function doesn't with unsigned character?
Thomas Kyte <tkyte_at_oracle.com> wrote in message news:<as849u0159i_at_drn.newsguy.com>...
> In article <c9d20f14.0211280827.3a15f71b_at_posting.google.com>, cdube_at_mecanica.ca
> says...
> >
> >Hello
> >
> >On unix client workstation I connect to my DB with sqlplus.
> >I have a table with raw field (data),
> >1 -> insert -> B14458B1...
> >2 -> select dump(data,17) from table;
> >3 -> I got this -> b1,D,X,b1
> >
>
> I would be worried if I got that or this:
>
> >I should get this -> ±,D,X,±
> >
>
> the only thing you should get is this:
>
> ops$tkyte_at_ORA920.LOCALHOST> create table t ( data raw(8) );
>
> Table created.
>
> ops$tkyte_at_ORA920.LOCALHOST> insert into t values ( 'B14458B1' );
>
> 1 row created.
>
> ops$tkyte_at_ORA920.LOCALHOST> select dump(data) from t;
>
> DUMP(DATA)
> ----------------------------------------------------------------------------------------------------
> Typ=23 Len=4: 177,68,88,177
>
> ops$tkyte_at_ORA920.LOCALHOST> select dump(data,16) from t;
>
> DUMP(DATA,16)
> ----------------------------------------------------------------------------------------------------
> Typ=23 Len=4: b1,44,58,b1
>
> ops$tkyte_at_ORA920.LOCALHOST> select data from t;
>
> DATA
> ----------------
> B14458B1
>
>
>
> raw is raw -- no translation, I don't understand what you are trying to do here.
>
> Can you post a complete example?
>
>
<<<<<<<<<>>>>>>>>>>>>>
Thanks,
Example ->
I do
select dump(data) from t;
I got -> Typ=23 Len=4: 177,68,88,177
I do chr(177) I got -> ±
select chr(177) from dual; C - ± if I do select dump(data,17) from table; -> b1,D,X,b1 I'd like to get -> ±,D,X,±
Thanks for your time.
Claude
<<<<<<<<<<>>>>>>>>>>>>>>>>