Thread: databases and C

  1. #1
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584

    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

  2. #2
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    You would use an API called SQL. Stands for Structured Quiery Language. Call these library functions in your C program.

  3. #3
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    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'.
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

  4. #4
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    HAHAHAHAHAH!!!!!!!!
    Last edited by Troll_King; 10-20-2001 at 04:41 AM.

  5. #5
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    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

  6. #6
    Unregistered
    Guest
    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.

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    They really need to fix the cookie timer here. I'm tired of it timing out my login and reverting to "unregistered".

    Quzah.

  8. #8
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    > 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

  9. #9
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    Yeah.

    Same thing happens to me quite often. This thing has to be fixed, it's annoying sometimes.
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

  10. #10
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    > 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?

  11. #11
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    If we all start bugging them about this problem they should fixed it faster, don't you think?
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

  12. #12
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Yup...I'm with you. Let's go.

  13. #13
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    I already sent a request to look into this problem.

    Cheers.
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

  14. #14
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Thanks.

Popular pages Recent additions subscribe to a feed