Connection to Data base

3 views
Skip to first unread message

bahador saket

unread,
Mar 8, 2010, 1:01:59 PM3/8/10
to FIT Cafeteria
Dear All

I interested to learn how can I connect to data base by C++ language?
Can you help me to specify the best data base and introduce some
references for this goal please?

Please attend that i am not expert in programming :) guide me easily
please:D


Best Regards,
Bahador Saket

Ian Tam

unread,
Mar 8, 2010, 2:32:33 PM3/8/10
to fit-ca...@googlegroups.com
Dear Bahador,

C++ by itself does not provide support to access database (as far as I can remember). It has to be done through a connector library. I suggest you start to learn how to achieve this by using the mysql library (mysql.h) since there's a lot of reference on the mysql programming syntax. The choice of database to use is totally up to you (at this point of learning).
http://c-programming.suite101.com/article.cfm/using_a_mysql_databases_with_c

Unless you are programming for a specific purpose, then you may need a certain database to achieve your goal but in general, you will have to use the related library and use the connect method supplied. Then you will use the supplied method to access the needed data. In the case, you will passing the mysql command.





--
Regards,

Ian Tam Yee Yung
Editor-in-Chief Students' Publication Organization 09/10
President ITSociety MMU - Cyberjaya 08/09
Open Source Alliance - Cyberjaya 07/08-09/10
Multimedia University
Cyberjaya
email: cere...@iantam.net / cere...@gmail.com / ian.tam.y...@mmu.edu.my
Tel: +6019.214.2887

bahador saket

unread,
Mar 8, 2010, 11:02:24 PM3/8/10
to fit-ca...@googlegroups.com
tnx for your helps , I will start if i encounter any problem, ask you
Reply all
Reply to author
Forward
0 new messages