gpt4 book ai didi

mysql - 我的sql语句语法错误,请帮忙!

转载 作者:行者123 更新时间:2023-11-29 09:11:13 27 4
gpt4 key购买 nike

我不确定我在这里做错了什么,但我有一个语法错误

SELECT * `Orders` o
LEFT JOIN Shipment s
ON o.for_shipment_id = s.shipment_id
WHERE 'internal_status' = 'HAS_SHIP_INFO'
AND (s.ship_method = 'FEDEX' OR s.ship_method = 'USPS' OR s.ship_method = 'UPS')

最佳答案

您在 * 之后缺少 FROM

SELECT * 
FROM <-- You're missing this :o)
`Orders` oLEFT JOIN Shipment s ON o.for_shipment_id = s.shipment_idWHERE 'internal_status' = 'HAS_SHIP_INFO' AND (s.ship_method = 'FEDEX' OR s.ship_method = 'USPS' OR s.ship_method = 'UPS')

关于mysql - 我的sql语句语法错误,请帮忙!,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5504534/

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