Insert into msg (title,author,[time],content,mail,[from],image)"

解决方案 »

  1.   

    strSql="Insert into msg(title,author,time,content,mail,from,image)"
    strSql=strSql & " Values("
    程序中生成的sql在Values前没有空格,变成
    Insert into msg(title,author,time,content,mail,from,imageValues(……
    当然会出错了,在数据格式都没错的情况下,这个是一个很明显的错误。建议,有sql出错的时候,输出sql查看,或者在数据库中运行调试。
      

  2.   

    best way:
    changes the sql keyworks to another.
    e.g.
    date -> addeddate
    from -> comefrom, etc.because these are sql keywords