我正在尝试将多个字段中的单个字段添加到表中:
错误号码:1054
未知栏目'说明'在'字段列表'
代码:
INSERT INTO `eys_questions` (`question`, `description`, `answer1`,
`checkbox1`, `answer2`, `answer3`, `answer4`, `answer5`, `answer6`,
`answer7`, `answer8`, `answer9`, `answer10`, `image`)
VALUES ('This is the question ', 'This is the description', 'This is the answer', '1',
'', '', '', '', '', '', '', '', '', '')
文件名:C:/xampp/htdocs/eys/system/database/DB_driver.php
行号:691
答案 0 :(得分:2)
您的db表看起来没有任何名为description
的列。查看列名description
的拼写。
答案 1 :(得分:0)
您需要验证 { [
{
id: 1,
subject: welcome,
body:hbjdbjddjh,
sender: wealsegun@gmail.com },
{
id: 1,
subject: welcome,
body:hbjdbjddjh,
sender: wealsegun@gmail.com },
{
id: 1,
subject: welcome,
body:hbjdbjddjh,
sender: wealsegun@gmail.com },
{
id: 1,
subject: welcome,
body:hbjdbjddjh,
sender: wealsegun@gmail.com },
],
[
{
id: 2,
subject: welcome,
body:hbjdbjddjh,
sender: wealsegun@gmail.com },
{
id: 2,
subject: welcome,
body:hbjdbjddjh,
sender: wealsegun@gmail.com },
{
id: 2,
subject: welcome,
body:hbjdbjddjh,
sender: wealsegun@gmail.com },
{
id: 2,
subject: welcome,
body:hbjdbjddjh,
sender: wealsegun@gmail.com },
]}
表上的列。错误非常明显:该表没有eys_questions
列。您可以使用description
(描述)sql命令检查表中的列。
在您的情况下,desc
。这将向您显示表信息,例如列名和类型。
验证列名后,可以相应地修改插入语句。