Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2008
    Posts
    464

    Unanswered: Hex value loading....9i

    Hi

    I have a CSV which contains some HEX and some DEC values. After loading the file into the database, all values appear as DEC. Not sure how this conversion is taking place. Could someone please advise on any possibilities?

    Regards
    Shajju

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool Show us the money

    Post an example of the source data.
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >I have a CSV which contains some HEX and some DEC values.

    http://download.oracle.com/docs/cd/B...htm#sthref1052

    "X'hexstr' The delimiter is a string that has the value specified by X'hexstr' in the character encoding scheme, such as X'1F' (equivalent to 31 decimal). "X"can be either lowercase or uppercase."

    Were the HEX values properly identified?
    Last edited by anacedent; 10-23-10 at 17:29.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  4. #4
    Join Date
    Aug 2008
    Posts
    464
    Thanks...The data type for the column that the HEX value is loaded into is 'Number'

    I do have another issue to figure out which is why a snmp tool is fetching values from a MIB which are supposed to be integers, in HEX format but maybe this is not the right place!

  5. #5
    Join Date
    Nov 2003
    Posts
    2,935
    Provided Answers: 12
    For future posts, please remember to

    - Post the structure of your table(s) by posting the necessary CREATE TABLE statements
    - Post the sample data you are working with
    - Post the exact commands that you run (use Copy & Paste)
    - Post the exact outcome of your import/query/...
    - In case there is an error, post the exact error message (use Copy & Paste) (do not post screenshots!)

    And make sure all your SQL is readable by formatting it using [code] tags

Posting Permissions

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