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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:54:18+00:00 2026-05-27T12:54:18+00:00

I am using Oracle as my database,and C++ as the language to fetch the

  • 0

I am using Oracle as my database,and C++ as the language to fetch the data from the database. Let say I want to fetch data from table Customer,how should I store it? In Java, I use Vector < MyClassDefinition>. However the way to define a vector in C++ is quite complex for me. The data I fetch from the database have more than 6 column, and if I want to store it in vector, the declaration of 6 column is quite too long.

1. Is there any other way to store the data from a table in a temporary collection is C++?

2. Or I should use vector,but I am doing it wrong?

3. Or should I just use a pointer and split it into column and row by myself?

  • 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-05-27T12:54:19+00:00Added an answer on May 27, 2026 at 12:54 pm

    Have a std::vector of a class reprenting a row.

    class Row
    {
      int a;
      string b;
      int c;
      float f;
      double g;
      string d;
    };
    
    std::vector<Row> rows;
    

    If some columns might be nullable, then boost::optional

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

Sidebar

Related Questions

I am using oracle database.I want to use duplicate rows from a table except
I am using oracle database. When I tried to fetch the data using a
I wrote a small script to extract data from Oracle using Takusen: {-# LANGUAGE
I want to connect to oracle database using C language in Windows OS. But
I'm using an Oracle database with a collation different to my OS language. I'm
I am using oracle wallet to store the oracle database passwords, the batch file
We are using an Oracle 11 database and a java development environment (using Eclipse)
I have some Java code that connects to an Oracle database using DriverManager.getConnection(). It
Possible Duplicate: SELECT INTO using Oracle I have one table in my oracle database.
I am using Oracle Database 10g Express Edition on windows. I want to install

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.