#1
  1. No Profile Picture
    sangeeta
    Guest
    Devshed Newbie (0 - 499 posts)
    Hello!
    I want to insert data into MySQL through C++ program at run time. How do i do that?
    Thanks.
  2. #2
  3. No Profile Picture
    carls
    Guest
    Devshed Newbie (0 - 499 posts)
    You could do it the really easy way without having to write/find any MySQL function libraries for C with the system() command
    (ie system("echo 'mysql commands|mysql'")

    If this seems to be a bad solution to the proble (which it is), I know that somewhere out there there's som neat MySQL stuff for C/++
  4. #3
  5. No Profile Picture
    carls
    Guest
    Devshed Newbie (0 - 499 posts)
    Sorry for the typing errors in the answer
    Of course it should be
    system("echo 'mysql commands'|mysql")
  6. #4
  7. No Profile Picture
    fcatz
    Guest
    Devshed Newbie (0 - 499 posts)
    Theres the C API that comes with mysql but theres a *new API for c++ out, go to
    http://mysql.omnipotent.net/mysql++/doc/man-html/index.html to see how to use it, looks kinda easy i think.

Similar Threads

  1. MySQL COUNT query - help needed please.
    By rycrostud in forum MySQL Help
    Replies: 1
    Last Post: August 29th, 2003, 08:33 AM
  2. Efficient way to query MySQL
    By kingmike in forum PHP Development
    Replies: 7
    Last Post: July 30th, 2002, 03:19 PM
  3. Need help with a mysql query
    By mrdon in forum MySQL Help
    Replies: 3
    Last Post: July 23rd, 2002, 04:22 PM
  4. Replies: 2
    Last Post: July 22nd, 2002, 01:23 PM
  5. Can't get most recent date from MySQL query
    By jpluttme in forum MySQL Help
    Replies: 4
    Last Post: October 9th, 2001, 12:27 AM

IMN logo majestic logo threadwatch logo seochat tools logo