Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 27 Sep 2006 @ 21:01:54 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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.


     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023