|
|
Archives of the TeradataForum
Message Posted: Wed, 27 Sep 2006 @ 21:01:54 GMT
Subj: | | Re: BYTE VARBYTE |
|
From: | | Greene, Thomas |
| Does anyone have any examples of inserting BYTE or VARBYTE data into Teradata? I RTFM (database design, DML, DDL) with no luck (or I
selectively ignored the pertinent text). | |
Perhaps what you are looking for is in the SQL Reference, Data Types and Literals; Chapter 2 - Data Literals, Hexadecimal Literals.
For example:
create table bytejunk (myint integer, mybyte byte(3));
*** Table has been created.
*** Total elapsed time was 1 second.
BTEQ -- Enter your DBC/SQL request or BTEQ command:
insert into bytejunk (myint, mybyte) values (1, '000102'XBF);
*** Insert completed. One row added.
*** Total elapsed time was 1 second.
| |