php - SQL插入不要让我插入超过20列
问题描述
我的问题是为什么 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
));
当我尝试添加另一列时,它只是不插入数据而不告诉我任何错误“是 PDO 方法”我真的需要你的帮助
解决方案
推荐阅读
- pyspark - 变量等于pyspark上的doublemetaphone
- python - Pandas read_csv:使用单个变量加载多个文件 - 日期转换函数出现未绑定错误
- javascript - 为什么每个生产部署都需要清除浏览器缓存
- java - Onesignal 和 play-services-ads 错误:无法在单个 dex 文件中容纳请求的类
- docker - 进程可以在 Windows 上写入 docker 卷,而不是在 Ubuntu 上
- android - ViewPager2 在键盘出现时调整大小
- javascript - 如何更改嵌入文本的字体大小
- jsf - 检查复选框菜单中的选定项目
- sql - 尝试将外键添加到现有表时出现模糊错误
- kubernetes - 强制 kubernetes 入口 cname 格式