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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:33:05+00:00 2026-06-16T07:33:05+00:00

I am facing a problem with extracting data from a database. The problem is

  • 0

I am facing a problem with extracting data from a database. The problem is that I have more than one version of the database. Each version differs in the number of columns available and also the name (label) of columns may also change.

For example:
One version has column with the name contact, but with another version is contact_name (they represent the same information).

The question is how can I deal with such a situation where the column names can change from one database version to another. Also, if possible, reduce the need for changing my source code if more information (columns) has been added to the database.

I want to hear some suggestions before I start coding.

  • 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-16T07:33:06+00:00Added an answer on June 16, 2026 at 7:33 am

    If you can’t change the databases have a look at implementing an abstraction layer between your code and your database:

    Database abstraction layers reduce the amount of work by providing a consistent API to the developer and hide the database specifics behind this interface as much as possible.

    You can then develop without worrying about the underlying structure, and contain all of information about what columns to use in what database within this layer.

    In practice, what you’d use would depend on what language you’re using, what database you’re using and how the application is designed.

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

Sidebar

Related Questions

I am facing problem in creating more than one tables in sqllite database in
I have facing problem for creating a Regex that accept any string other than
I'm facing problem in retrieving data and images from the remote database server. I
I have facing problem in listview i am getting data from server and after
I am facing problem to get variable from query string. I have used htaccess
I am facing problem with Inner join in Access Database. I have two table
I am facing problem while upgrading an Higher version over Lower version. I have
I am facing problem adding and deleting DataRows from a DataTable that is meant
I'm facing a character discrepancy issue while extracting data from db tables. I've written
I am learning MATLAB and am facing problem about extracting most significant bits from

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.