Thread: SQL in C++

  1. #1
    Registered User
    Join Date
    Nov 2005

    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)


    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, 04:30 PM
  2. Please help create a loop for embedded SQL
    By cjohnman in forum C Programming
    Replies: 4
    Last Post: 04-24-2008, 06:46 AM
  3. Embedded SQL
    By sarac in forum C Programming
    Replies: 1
    Last Post: 05-04-2006, 09: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, 05:16 PM