Reg: Extracting the data to CSV format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivadhanekula
    New Member
    • Nov 2008
    • 58

    #1

    Reg: Extracting the data to CSV format

    Hi Everyone

    A quick question: How to write MYSQL command in C-Language

    MYSQL Statement to select particular row from a table is:
    [CODE=sql]SELECT User FROM absprfg[/CODE]

    where User is the heading of the row
    absprfg is the table name

    I want a code for the above mentioned ´statement in C/C++ by using mysql_select_db or mysql_query or mysql_use_resul t
    and If I run this program I should get the output in .CSV format.

    Rply me as soon as possible

    Thanks in advance
    Dhanekula. Siva
    Last edited by Atli; Nov 4 '08, 02:50 PM. Reason: Added [code] tags.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    Check out the MySQL C API in the manual.

    If you need example code, try downloading the MySQL source code and go through the mysql client.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      What happened to the advice given to you in your other thread in the C forum?

      Comment

      Working...