SQL in C++

This is a discussion on SQL in C++ within the C++ Programming forums, part of the General Programming Boards category; How can one connect to an SQL database in a C++ program? like in PHP we have: $cmd = "some ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    80

    SQL in C++ (SOLVED)

    How can one connect to an SQL database in a C++ program? like in PHP we have:

    $cmd = "some SQL command";
    $query = pg_query($cmd);
    (for connecting to PostgreSQL)

    Thanks.

    EDIT: Ok, nevermind, just figured it out...
    Last edited by Opel_Corsa; 01-05-2006 at 02:43 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 05:30 PM
  2. Please help create a loop for embedded SQL
    By cjohnman in forum C Programming
    Replies: 4
    Last Post: 04-24-2008, 07:46 AM
  3. Embedded SQL
    By sarac in forum C Programming
    Replies: 1
    Last Post: 05-04-2006, 10:09 AM
  4. Replies: 1
    Last Post: 03-21-2006, 07:52 AM
  5. Problem with embedded SQL in C/C++ (ECPG)
    By NeuralClone in forum C Programming
    Replies: 4
    Last Post: 10-21-2005, 06:16 PM

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