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 8533165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:53:48+00:00 2026-06-11T09:53:48+00:00

I want to have a column containing a hash or checksum as a single

  • 0

I want to have a column containing a hash or checksum as a single value to compare records. Is it possible to do something like this in pure SQL ? Do you see this as practical versus a programmatic solution in PHP ?

  • 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-11T09:53:50+00:00Added an answer on June 11, 2026 at 9:53 am

    Yes, this is possible. MD5(), SHA1(), and SHA2() are all workable hash functions.

    You must compute the values of these functions row by row and query by query. For example, every time you insert a row you’ll have to insert the hash value, doing something like this:

    INSERT INTO x
           name=?name,
           address=?address,
           hash=MD5(CONCAT(?name,?address))
    

    You’ll need to do something similar on each update. If you get it wrong, which is remarkably easy especially if your table structure changes, your hashes become worse than useless.

    By the way, MD5 isn’t cryptographically secure for authentication any more. However, it’s still an acceptable choice for this kind of hashing in a closed system.

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

Sidebar

Related Questions

I have a column containing dates like this: 20120418 in Access 2010. I want
I have a grid containing name and value columns. In value column I want
I have a table in the db with one column containing a URL like
I have a single table containing many users. In that table I have column
I have a TIMESTAMP column containing: 2011-10-12 12:00:00 Now I want to be able
I have a column containing hyperlinks and I want to do a programmatic search
I have a table with a column containing text, and I want to select
I have a melted dataset containing a column value which represent an absolute number
I have an ARFF file containing 14 numerical columns. I want to perform a
a have three column layout and i want to have three divs inside the

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.