SQL插入不要让我插入超过20列

时间:2018-08-06 16:31:58

标签: php sql

我的问题是为什么sql不允许我插入包含20列以上的行,所以一切正常,但是当它达到limit()时

$statement=$connection->prepare("INSERT INTO post
        ( id, short_name, title, fecha, author_id, 
          platform, general, size, type, views, 
          about, spain, english, japanese, italian, 
          french, other, genre, tutorial)
 VALUES ( :id, :short_name, :title, :fecha, :author_id, 
          :platform, :general, :size, :type, :views, 
          :about, :spain, :english, :japanese, :italian, 
          :french, :other, :genre, :tutorial)");

 $statement->execute(array(
               ':id'=>$null,
               ':short_name'=>$short_title,
               ':title'=>$title,
               ':fecha'=>$date,
               ':author_id'=>$mineid,
               ':platform'=>$platform,
               ':general'=>$general,
               ':size'=>$size,
               ':type'=>$type,
               ':views'=>$o,
               ':about'=>$about,
               ':spain'=>$spanish,
               ':english'=>$english,
               ':japanese'=>$japanese,
               ':italian'=>$italian,
               ':french'=>$french,
               ':other'=>$other,
               ':genre'=>$genre,
               ':tutorial'=>$videotutorial
              ));

当我尝试添加另一列时,只是不插入数据而没有告诉我任何错误“ IS PDO方法”,我真的需要您的帮助

0 个答案:

没有答案