-
databases and C
How would you work with databases in C? Would you just read a database file like .mdb? How, exactly, would you do this? For instance, a login. I don't really mean Windows programming (although, I am getting into that). Just some DOS fooling around programming. Thanks.
--Garfield
-
You would use an API called SQL. Stands for Structured Quiery Language. Call these library functions in your C program.
-
The previous answer wasn't really correct.
In order to use a database in C depending on what database you are planning to use ( MS Access, MySQL, Oracle etc.) you will need to obtain an API (application programming interface) for this specific database. Each API will contain a similar set of functions which will allow you to manipulate the database according to your needs.
Hope this helped.
P.S. By the way, Troll_King, Query is spelled without an 'i'.
-
-
Okay, I understand what you mean by I'll have to get the API. But, where would I get this? How would I learn the functions and all? Thanks.
--Garfield
-
Buy a book on the interface you plan to use. SQL, DB, whatever. You may want to check out:
http://www.amazon.com/exec/obidos/AS...236480-9615219 (MySQL) Currently on Amazon, if you buy said book, you get a bonus PHP book free. I personally own the MySQL book, though I've yet to give it a good read. It's highly recommended by others on Amazon.
Quzah.
-
They really need to fix the cookie timer here. I'm tired of it timing out my login and reverting to "unregistered".
Quzah.
-
> They really need to fix the cookie timer here. I'm tired of it timing out my login and reverting to "unregistered".
I know exactly what you mean, quzah. In fact, I even posted a thread about it in GD. There were no valid "excuses". Thanks for the info.
--Garfield
-
Yeah.
Same thing happens to me quite often. This thing has to be fixed, it's annoying sometimes.
-
> Same thing happens to me quite often. This thing has to be fixed, it's annoying sometimes.
I think it's annoying all of the time. Do you think we can contact a mod?
-
If we all start bugging them about this problem they should fixed it faster, don't you think?
-
Yup...I'm with you. Let's go.
-
I already sent a request to look into this problem.
Cheers.
-