解决方案 »

  1.   

    INSERT INTO tbl_name () VALUES();
      

  2.   

    VALUES
      

  3.   


    sprintf(s, "insert into poi_name (err_name, feat_code ) value %s", strTemp.c_str());
    我的代码使用VALUE木有问题啊。
      

  4.   

    mysql 是mysql
    c++ 是c++
    语法不一样
      

  5.   


    sprintf(s, "insert into poi_name (err_name, feat_code ) value %s", strTemp.c_str());
    我的代码使用VALUE木有问题啊。according to the mysql doc, both value and values are valid.http://dev.mysql.com/doc/refman/5.5/en/insert.htmlTry replacing value with values and see if you still get  errono 1064.