INSERT INTO joinCheck(memberId,name,telephone,mobilePhone,customerService,address,reason,state,applyTime,unleDomain,bankAccount,taobao,recommend) 
VALUES('953','青岛潮尚千百购','123','13954242955','[email protected]','闽江三路10号601','第一,创业心驱使
第二,赚外快提高生活品质','1','2010-8-13 10:40:29','smile','6222300039695369','niwei') 
  报错类型:消息 109,级别 15,状态 1,第 1 行
INSERT 语句中列的数目大于 VALUES 子句中指定的值的数目。VALUES 子句中值的数目必须与 INSERT 语句中指定的列的数目匹配。

解决方案 »

  1.   

    (memberId,name,telephone,mobilePhone,customerService,address,reason,state,applyTime,unleDomain,bankAccount,taobao,recommend)  这是13个列VALUES('953','青岛潮尚千百购','123','13954242955','[email protected]','闽江三路10号601','第一,创业心驱使
    第二,赚外快提高生活品质','1','2010-8-13 10:40:29','smile','6222300039695369','niwei')  这只有12个值应该没有数错吧!提示已经很清楚了。
      

  2.   

    欄位不對呀,你要插入的
    joinCheck(memberId,name,telephone,mobilePhone,customerService,address,reason,state,applyTime,unleDomain,bankAccount,taobao,recommend)
    欄位數要跟
    VALUES('953','青岛潮尚千百购','123','13954242955','[email protected]','闽江三路10号601','第一,创业心驱使
    第二,赚外快提高生活品质','1','2010-8-13 10:40:29','smile','6222300039695369','niwei')
    裡面的欄位一一對應
      

  3.   


    INSERT 语句中列的数目大于 VALUES 子句中指定的值的数目。VALUES 子句中值的数目必须与 INSERT 语句中指定的列的数目匹配。
    错误信息已经说得很明确了。列的数目不匹配,你自己再数下。
      

  4.   

    晕哦,改好后又说从字符串向 datetime 转换时失败。
    这是怎么回事啊
      

  5.   


    你数据库中哪个字段是datetime型的,改成varchar(20)吧
      

  6.   

    INSERT INTO joinCheck(memberId,name,telephone,mobilePhone,customerService,address,reason,state,applyTime,unleDomain,bankAccount,taobao,recommend)  
    VALUES('953','青岛潮尚千百购','123','13954242955','[email protected]','闽江三路10号601','第一,创业心驱使
    第二,赚外快提高生活品质','1','2010-8-13 10:40:29','smile','6222300039695369','niwei',null)