Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8360833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:33:33+00:00 2026-06-09T11:33:33+00:00

First, I can not re-export this, so I’m stuck with this file. In the

  • 0

First, I can not re-export this, so I’m stuck with this file.

In the sample posted below, values for an INT column are hexadecimal. I think. Values such as 0X31 need to import as 1. Instead they import as 49. I’m guessing that this might be the ascii equivalent. I need to import 0x31 as 1, 0x32 as 2, etc. How would I do this?

I would also be OK with a text editor that is smart enough to search and replace these values. I have thousands of questionid’s so I don’t want to do this manually e.g. search “0x31” replace with “1”.

Here is the import sample.

REPLACE INTO 'qa_sharedevents' ('entitytype', 'entityid', 'questionid', 'lastpostid', 'updatetype', 'lastuserid', 'updated') VALUES
('Q', '1', 0x31, '1', '', '1', '2012-03-08 23:45:56'),
('U', '1', 0x31, '1', '', '1', '2012-03-08 23:45:56'),
('Q', '1', 0x31, '3', '', '', '2012-03-09 02:23:54'),
('T', '17', 0x31, '1', '', '1', '2012-03-08 23:45:56'),
('Q', '2', 0x32, '2', '', '1', '2012-03-09 01:28:36'),
('U', '1', 0x32, '2', '', '1', '2012-03-09 01:28:36'),
('Q', '2', 0x32, '2', 'E', '1', '2012-03-09 01:30:27'),
('U', '1', 0x32, '2', 'E', '1', '2012-03-09 01:30:27'),

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:33:34+00:00Added an answer on June 9, 2026 at 11:33 am

    Try the CHAR() function:

    mysql> select char(0x31), char(0x35);
    +------------+------------+
    | char(0x31) | char(0x35) |
    +------------+------------+
    | 1          | 5          |
    +------------+------------+
    1 row in set (0.00 sec)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure if you can do this, but I want to select the first
First off, I'm not an expert with MySQL queries, and I can't seem to
I can not locate the correct method to make the first item in a
Can anyone tell me why the first textbox is not aligned in the following
I know I can read off /proc/[id]/maps but I'm not sure if the first
I'm not a newb to JavaScript but this is my first foray into Acrobat
I am making a site that consumes a csv file this file can come
This is a followup to my first question Porting SQL export to T-SQL .
First of all, the context of this question is: Cannot install psycopg2 on OSX
Just a sidenote : I'm not sure whether I should post this to serverfault

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.