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

hp insert into语句出错

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:40:081190browse

$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

请问是哪里出错了呢

Statement:
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