dbTalk Databases Forums  

Re: In what type in Oracle it is possible to write down binary <8bit?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Re: In what type in Oracle it is possible to write down binary <8bit? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
gym dot scuba dot kennedy at gmail
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-03-2008 , 05:47 AM







<mmf.stavelot (AT) gmail (DOT) com> wrote

Quote:
Hello,

In what type in Oracle it is possible to write down binary <8bit?

Thanks,

St. Mr
That would be a raw column or a blob column depending upon size.
Jim




Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-03-2008 , 08:22 AM






On Oct 3, 6:47*am, "gym dot scuba dot kennedy at gmail"
<kenned... (AT) verizon (DOT) net> wrote:
Quote:
mmf.stave... (AT) gmail (DOT) com> wrote in message

news:e0ff1b3e-4f77-41dd-b628-4123954f2b47 (AT) s50g2000hsb (DOT) googlegroups.com...> Hello,

In what type in Oracle it is possible to write down binary <8bit?

Thanks,

St. Mr

That would be a raw column or a blob column depending upon size.
Jim
If you are going to try to work with bits via Oracle you might find
the following SQL functions of interest:

HEXTORAW
RAWTOHEX
BITAND
BIN_TO_NUM

as well as the functions provided by the UTL_RAW package.

HTH -- Mark D Powell --


Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-03-2008 , 08:22 AM



On Oct 3, 6:47*am, "gym dot scuba dot kennedy at gmail"
<kenned... (AT) verizon (DOT) net> wrote:
Quote:
mmf.stave... (AT) gmail (DOT) com> wrote in message

news:e0ff1b3e-4f77-41dd-b628-4123954f2b47 (AT) s50g2000hsb (DOT) googlegroups.com...> Hello,

In what type in Oracle it is possible to write down binary <8bit?

Thanks,

St. Mr

That would be a raw column or a blob column depending upon size.
Jim
If you are going to try to work with bits via Oracle you might find
the following SQL functions of interest:

HEXTORAW
RAWTOHEX
BITAND
BIN_TO_NUM

as well as the functions provided by the UTL_RAW package.

HTH -- Mark D Powell --


Reply With Quote
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-03-2008 , 08:22 AM



On Oct 3, 6:47*am, "gym dot scuba dot kennedy at gmail"
<kenned... (AT) verizon (DOT) net> wrote:
Quote:
mmf.stave... (AT) gmail (DOT) com> wrote in message

news:e0ff1b3e-4f77-41dd-b628-4123954f2b47 (AT) s50g2000hsb (DOT) googlegroups.com...> Hello,

In what type in Oracle it is possible to write down binary <8bit?

Thanks,

St. Mr

That would be a raw column or a blob column depending upon size.
Jim
If you are going to try to work with bits via Oracle you might find
the following SQL functions of interest:

HEXTORAW
RAWTOHEX
BITAND
BIN_TO_NUM

as well as the functions provided by the UTL_RAW package.

HTH -- Mark D Powell --


Reply With Quote
  #5  
Old   
Mark D Powell
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-03-2008 , 08:22 AM



On Oct 3, 6:47*am, "gym dot scuba dot kennedy at gmail"
<kenned... (AT) verizon (DOT) net> wrote:
Quote:
mmf.stave... (AT) gmail (DOT) com> wrote in message

news:e0ff1b3e-4f77-41dd-b628-4123954f2b47 (AT) s50g2000hsb (DOT) googlegroups.com...> Hello,

In what type in Oracle it is possible to write down binary <8bit?

Thanks,

St. Mr

That would be a raw column or a blob column depending upon size.
Jim
If you are going to try to work with bits via Oracle you might find
the following SQL functions of interest:

HEXTORAW
RAWTOHEX
BITAND
BIN_TO_NUM

as well as the functions provided by the UTL_RAW package.

HTH -- Mark D Powell --


Reply With Quote
  #6  
Old   
DA Morgan
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-03-2008 , 03:11 PM



Mark D Powell wrote:
Quote:
On Oct 3, 6:47 am, "gym dot scuba dot kennedy at gmail"
kenned... (AT) verizon (DOT) net> wrote:
mmf.stave... (AT) gmail (DOT) com> wrote in message

news:e0ff1b3e-4f77-41dd-b628-4123954f2b47 (AT) s50g2000hsb (DOT) googlegroups.com...> Hello,

In what type in Oracle it is possible to write down binary <8bit?
Thanks,
St. Mr
That would be a raw column or a blob column depending upon size.
Jim

If you are going to try to work with bits via Oracle you might find
the following SQL functions of interest:

HEXTORAW
RAWTOHEX
BITAND
BIN_TO_NUM

as well as the functions provided by the UTL_RAW package.

HTH -- Mark D Powell --
Don't forget:
NUMTOHEX
NUMTOHEX2
and
RAWTONHEX
http://www.psoug.org/reference/builtin_functions.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #7  
Old   
DA Morgan
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-03-2008 , 03:11 PM



Mark D Powell wrote:
Quote:
On Oct 3, 6:47 am, "gym dot scuba dot kennedy at gmail"
kenned... (AT) verizon (DOT) net> wrote:
mmf.stave... (AT) gmail (DOT) com> wrote in message

news:e0ff1b3e-4f77-41dd-b628-4123954f2b47 (AT) s50g2000hsb (DOT) googlegroups.com...> Hello,

In what type in Oracle it is possible to write down binary <8bit?
Thanks,
St. Mr
That would be a raw column or a blob column depending upon size.
Jim

If you are going to try to work with bits via Oracle you might find
the following SQL functions of interest:

HEXTORAW
RAWTOHEX
BITAND
BIN_TO_NUM

as well as the functions provided by the UTL_RAW package.

HTH -- Mark D Powell --
Don't forget:
NUMTOHEX
NUMTOHEX2
and
RAWTONHEX
http://www.psoug.org/reference/builtin_functions.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #8  
Old   
DA Morgan
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-03-2008 , 03:11 PM



Mark D Powell wrote:
Quote:
On Oct 3, 6:47 am, "gym dot scuba dot kennedy at gmail"
kenned... (AT) verizon (DOT) net> wrote:
mmf.stave... (AT) gmail (DOT) com> wrote in message

news:e0ff1b3e-4f77-41dd-b628-4123954f2b47 (AT) s50g2000hsb (DOT) googlegroups.com...> Hello,

In what type in Oracle it is possible to write down binary <8bit?
Thanks,
St. Mr
That would be a raw column or a blob column depending upon size.
Jim

If you are going to try to work with bits via Oracle you might find
the following SQL functions of interest:

HEXTORAW
RAWTOHEX
BITAND
BIN_TO_NUM

as well as the functions provided by the UTL_RAW package.

HTH -- Mark D Powell --
Don't forget:
NUMTOHEX
NUMTOHEX2
and
RAWTONHEX
http://www.psoug.org/reference/builtin_functions.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #9  
Old   
DA Morgan
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-03-2008 , 03:11 PM



Mark D Powell wrote:
Quote:
On Oct 3, 6:47 am, "gym dot scuba dot kennedy at gmail"
kenned... (AT) verizon (DOT) net> wrote:
mmf.stave... (AT) gmail (DOT) com> wrote in message

news:e0ff1b3e-4f77-41dd-b628-4123954f2b47 (AT) s50g2000hsb (DOT) googlegroups.com...> Hello,

In what type in Oracle it is possible to write down binary <8bit?
Thanks,
St. Mr
That would be a raw column or a blob column depending upon size.
Jim

If you are going to try to work with bits via Oracle you might find
the following SQL functions of interest:

HEXTORAW
RAWTOHEX
BITAND
BIN_TO_NUM

as well as the functions provided by the UTL_RAW package.

HTH -- Mark D Powell --
Don't forget:
NUMTOHEX
NUMTOHEX2
and
RAWTONHEX
http://www.psoug.org/reference/builtin_functions.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #10  
Old   
Ed Prochak
 
Posts: n/a

Default Re: In what type in Oracle it is possible to write down binary <8bit? - 10-07-2008 , 03:59 PM



On Oct 3, 5:47*am, "gym dot scuba dot kennedy at gmail"
<kenned... (AT) verizon (DOT) net> wrote:
Quote:
mmf.stave... (AT) gmail (DOT) com> wrote in message

news:e0ff1b3e-4f77-41dd-b628-4123954f2b47 (AT) s50g2000hsb (DOT) googlegroups.com...> Hello,

In what type in Oracle it is possible to write down binary <8bit?

Thanks,

St. Mr

That would be a raw column or a blob column depending upon size.
Jim
Actually nothing stops you from inserting nonprintable ascii
characters in a VARCHAR2 column.
[Speaking from the experience of an ASCII nul (0) inserted in VARCHAR2
by a C program.]

I have a table badlog with column
last_line VARCHAR2(100);

insert into badlog values ('eee'||chr(1)||chr(5)||'ddd') ;

SELECT * from badlog;

LAST_LINE
--------------------
eee<01><05>ddd --- modified to not post binary 01 and 05 in case
that


1 row selected.

select rawtohex(last_line) from badlog ;
RAWTOHEX(LAST_LINE)
--------------------------------
6565650105646464 --- you can see they are real binary values.


1 row selected.

I would not recomend this, but it works. Displaying the result will
depend heavily on your character set.
Ed


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.