Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,167 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,892 people online right now. Registration is fast and FREE... Join Now!




help with database in C++

 
Reply to this topicStart new topic

help with database in C++

lfadi
12 Dec, 2007 - 08:07 AM
Post #1

New D.I.C Head
*

Joined: 17 Mar, 2007
Posts: 10


My Contributions
Hi.
I created some tables in SQL and filled them up with datas.
One other table X 4 example contains all the primary keys of those tables as attributes (has relation with those tables).

I just need to write some program on C++ to fill up that table X by data from other table.

What i need is help calling the data and keys to C++ coz i dunno how to do it

Thx......
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Help With Database In C++
12 Dec, 2007 - 10:33 AM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,226



Thanked: 37 times
Dream Kudos: 25
My Contributions
Enjoy!

http://www.sqlapi.com/

User is offlineProfile CardPM
+Quote Post

lfadi
RE: Help With Database In C++
12 Dec, 2007 - 11:05 AM
Post #3

New D.I.C Head
*

Joined: 17 Mar, 2007
Posts: 10


My Contributions
Thank you Amadeus smile.gif.
I'll check it out
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Help With Database In C++
12 Dec, 2007 - 11:24 AM
Post #4

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,226



Thanked: 37 times
Dream Kudos: 25
My Contributions
It's a set of APIs that can access various databases architectures. If you need help with the SQL syntax itself, or using the APIs, please feel free to ask any questions.

User is offlineProfile CardPM
+Quote Post

lfadi
RE: Help With Database In C++
16 Dec, 2007 - 03:42 AM
Post #5

New D.I.C Head
*

Joined: 17 Mar, 2007
Posts: 10


My Contributions
Hi again. I didnt understand all the SQLAPI and i have no much time to continue my final project for this semester so i thought maybe it is easier to call a MSACCESS database from C++ coz it is easier to create an access file than a MYSQL for me. I created the file but i need some help how to call this file into C++, or CBUILDER and use the keys data from each table to be able to fill up the principal table whose attributs are keys from other tables randomly using a small program.

Maybe am askin too much time but if u can help me please just calling the database(tables) and using the datas in each table.

Thank you again
User is offlineProfile CardPM
+Quote Post

lfadi
RE: Help With Database In C++
16 Dec, 2007 - 03:55 AM
Post #6

New D.I.C Head
*

Joined: 17 Mar, 2007
Posts: 10


My Contributions
Or maybe if u can tell me please how to create foreign key for a table from other table in and how to connect to mySQL from C++ and to use the datas.

sry for taking ur time.

Thanks again

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 12:08AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month