gpt4 book ai didi

php - 'where clause' 中的未知列,但它实际上是一个值

转载 作者:行者123 更新时间:2023-11-30 21:50:39 25 4
gpt4 key购买 nike

这让我抓狂,我一辈子都看不到错误...

这是我的查询

SELECT * FROM `data_specs` WHERE `Item_Code` = `ACR102190250`

我得到了这个错误

#1054 - Unknown column 'ACR102190250' in 'where clause'

但它不是列,它是一个值...

最佳答案

只需从值中删除反引号 (`) 并使用单引号 (')

SELECT * FROM `data_specs` WHERE `Item_Code` = 'ACR102190250'

关于php - 'where clause' 中的未知列,但它实际上是一个值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47431818/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com