Anyone know where to find a book or tut on how to code imbedded sql in C++, preferably on linux? I would like to find one that has some hands on stuff, where you can do everything from creating a db, table to maintaining it and creating reports.
Any particular database? There are all sorts. Some of them are of the form
Execute (string, param1, param2..)
where string is an sql statement and param1 etc are the positional parameters probably flagged by :1:: or something similar. OCI uses this format.
An alternative one is a preprocessor type like ProC which Oracle uses. The code has to be passed to a preprocessor which converts the SQL calls to something else. The problem with these is that you cannot use enums and nested #defines. The preprocessors aren't that clever.
Alternatively, you could try SQLLite which is a database completely written in C that is portable to any OS (including palmtops).
Any particular database? There are all sorts. Some of them are of the form
MySQL. Looking for a book/manual/tutorial that details how to do it. Need more than generalities. I am in process of learning C++ an would like to learn about using C++ to interface with a database as I learn.
I don't want to have to learn all about C++ from A to Z first before I can learn about how to interface with a database.
Also, is there a way to use the wget command in a C++ program or for that matter, other linux commands?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.