dsh77114 2015-09-30 21:24
浏览 128

“字段列表”中的未知列“A.VOLUME”更新列时

Not sure if this is a php/mysql bug however whenever I try to update a Column through PHP I get the following error 'Unknown column 'tablename.columnname' in 'field list'... just to make sure I typed up different variations of UPDATE queries directly on Terminal to test the syntax and they work fine, when I do the same through PHP the same error message..

CURRENTLY I'm trying to run this following query.

$updateSTKLISTVol = "UPDATE STKLIST AS A INNER JOIN (SELECT SYMBOL, VOLUME FROM $tablename WHERE id ='1') AS B ON A.SYMBOL = B.SYMBOL SET A.VOLUME=B.VOLUME";
$result5    = mysqli_query($dbcon, $updateSTKLISTVol) or die(mysqli_error($dbcon));

the error return is...

"Unknown column 'A.VOLUME' in 'field list' "

I would appreciate any guidance, thank you in advance.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 用易语言http 访问不了网页
    • ¥50 safari浏览器fetch提交数据后数据丢失问题
    • ¥15 matlab不知道怎么改,求解答!!
    • ¥15 永磁直线电机的电流环pi调不出来
    • ¥15 用stata实现聚类的代码
    • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
    • ¥20 docker里部署springboot项目,访问不到扬声器
    • ¥15 netty整合springboot之后自动重连失效
    • ¥15 悬赏!微信开发者工具报错,求帮改
    • ¥20 wireshark抓不到vlan