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

  • Home
  • SEARCH
  • 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 8682965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:54:59+00:00 2026-06-12T21:54:59+00:00

I need to transfer data from one system A to system B. System A

  • 0

I need to transfer data from one system A to system B. System A stores user ids are UUID and system B stores them as integers.

I am using MySQL select statement to retrieve and save data from System A and then transferring it across to System B. Is there an easy way to convert UUID into an integer in MySQL select statement?

  • 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-12T21:55:01+00:00Added an answer on June 12, 2026 at 9:55 pm

    As discussed in comments, you cannot simply turn a UUID into an integer and expect it to be unique. A UUID is 128-bits, versus INT(10) which is probably 32-bits. This means you have to ignore 96 bits, which equates to a very large number of potential collisions (around 78 octillion different UUIDs for every unique 32-bit value).

    Not all is lost, because in 32 bits you can represent up to around 4 billion users and that’s probably enough. All you really need to do is map your existing UUIDs to an integer, and that’s actually quite straight-forward.

    To achieve this, you can make a translation table that stores both UUID (as the primary key) and a unique integer (perhaps an auto-increment field). You can use this to map from System A to System B (and vice versa). You can put this table into either of the two databases, or you can keep it separate. Personally, I would put it into System B, because that is where the userId integer values actually make sense.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to know how we can transfer the data or records from one
I need to transfer data from one table to another. The second table got
I need to transfer data from one DB to another. The destination DB contains
I need to transfer some data from SQL Server to MySQL, once a month.
I need to transfer data daily from SQL Server (2008) to SQL Server (2005).
I need to transfer a user to a page which requires session data which
I need to transfer data from a PHP script on my local server to
I'm creating a socket program to transfer data from one pc to another, but
During last time I made many integrations (data transfer from one place to another,
For my current project in c# I need to transfer data from a SQL-Database

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.