Results 1 to 4 of 4
  1. #1
    Join Date
    May 2014

    Unanswered: column contains hex value --display using quey--db2 "select *from table_name"

    In db2, there is a column "C1"which cotanin hex value. While selecting,I use the query-- db2 "select *from sample_table"
    with this query it is not displaying the hex value for column "C1"
    For this if i use hex function it will display.
    my question is we have a existing table "old_table" which has the column "C2" conatins the hex value and when i use the statement ---db2 "select *from old_table"
    with this query it is display the value of column "C2" .
    i am not understanding that why it happenning for old_table. .
    Are we require some flags to notifying the column conatining hex value while creating the table.

  2. #2
    Join Date
    Apr 2006
    Provided Answers: 11
    db2level - platform -ddl of both tables - some sample data.....
    same db ? same putty window/user ? command window - tool ? local - remote ?
    many questions before this can be looked at..
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified

  3. #3
    Join Date
    Jun 2003
    Toronto, Canada
    Provided Answers: 1
    And what are the data types of the columns in question?
    "It does not work" is not a valid problem statement.

  4. #4
    Join Date
    Dec 2007
    Richmond, VA
    Provided Answers: 5
    the hex values are always displayed when you select a column, however, not all hex values are displayable in EBCDIC, so it might show as a blank. The only way to definitively see that there is something there is to use the HEX() function.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts