create connection to database in C

This is a discussion on create connection to database in C within the C Programming forums, part of the General Programming Boards category; Hi, would like to know how can i implement connection to DB and run a query in C. also which ...

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    2

    create connection to database in C

    Hi,
    would like to know how can i implement connection to DB and run a query in C.
    also which libraries i need to do it.
    thanks

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,817
    It depends on what database system you have in mind. If you are just experimenting at this point, SQLite is a good introduction.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    2
    i am using a load test application called Loadrunner from HP that has C compiler.
    my goal is to execute a query to find a specific value and use it aferwards.
    i am working with oracle DB.
    can you refer to an example of this kind

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Comunicating with an off site database
    By Lee134 in forum C# Programming
    Replies: 5
    Last Post: 08-02-2005, 10:49 AM
  2. XML and database ??
    By mellisa in forum Tech Board
    Replies: 14
    Last Post: 03-30-2003, 03:02 AM
  3. Programmers Database
    By sean345 in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 09-03-2002, 01:16 AM
  4. Replies: 1
    Last Post: 05-31-2002, 10:46 AM
  5. File Database & Data Structure :: C++
    By kuphryn in forum C++ Programming
    Replies: 0
    Last Post: 02-24-2002, 10:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21