Home > Backend Development > PHP Tutorial > hp insert into语句出错

hp insert into语句出错

WBOY
Release: 2016-06-06 20:40:08
Original
1149 people have browsed it

$db->query_unbuffered("insert into pd_file2tag set tag_name=1,file_id=($file_str)");

sql执行结果

[PHPDisk error!] insert into pd_file2tag set tag_name=1,file_id=('13','12','11','10','9','8','7','5','4','3','2','1')

MySQL Info: Operand should contain 1 column(s) , 1241

请问是哪里出错了呢

回复内容:

$db->query_unbuffered("insert into pd_file2tag set tag_name=1,file_id=($file_str)");

sql执行结果

[PHPDisk error!] insert into pd_file2tag set tag_name=1,file_id=('13','12','11','10','9','8','7','5','4','3','2','1')

MySQL Info: Operand should contain 1 column(s) , 1241

请问是哪里出错了呢

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template