Search:

Type: Posts; User: Beckster

Search: Search took 0.00 seconds.

  1. Replies
    18
    Views
    2,305

    The structure is created is located in the header...

    The structure is created is located in the header file.
  2. Replies
    18
    Views
    2,305

    Do I need to even tell it the name of the...

    Do I need to even tell it the name of the columns?
    Just add the VALUES attribute and then (%s, %s, %s, %s, %s, %s)
  3. Replies
    18
    Views
    2,305

    How are you parsing out the "," or is it...

    How are you parsing out the "," or is it automatically doing that when you do the INSERT. Also the macTS might have different lengths
  4. Replies
    18
    Views
    2,305

    1196741136,1.01466E+19,00:0F:F7:BE:FF:80,2307,-74,...

    1196741136,1.01466E+19,00:0F:F7:BE:FF:80,2307,-74,-96,1,177 - .csv file

    So I only need one %s, or multiple?
  5. Replies
    18
    Views
    2,305

    Not working

    The SQL insert commend doesn't work. The code compiles alright but I'm left with a blinking cursor when I execute the code....


    #include <stdio.h>
    #include <stdlib.h>
    #include <mysql/mysql.h>...
  6. Replies
    18
    Views
    2,305

    It is important that there are separate fields,...

    It is important that there are separate fields, also. Its not just passing a string to one field, I need the string separated (which it is by commas) and then put into a fields which I have already...
  7. Replies
    18
    Views
    2,305

    I agree that it shouldn't be an entire program...

    I agree that it shouldn't be an entire program but my partner says else wise.

    Sample code I need to modify


    /* Connect to database */
    if(!mysql_real_connect(conn, server, user, password,...
  8. Replies
    18
    Views
    2,305

    I think I have the parsing done

    #include <stdio.h>
    #include <stdlib.h>
    #include "csvParse.h";



    int parseLine(char line[],csvLine_t *data)
    {
    char *ptr;
    int fieldNum=0;
  9. Replies
    18
    Views
    2,305

    I can read it in, not sure on how to use "," as...

    I can read it in, not sure on how to use "," as the demlimiter and the INSERT command can be used on MYSQL but from there I'm stuck
  10. Replies
    18
    Views
    2,305

    Adding a *.csv to MYSQL server

    How do you read in a comma separated file and insert it into a mysql server database?
Results 1 to 10 of 10