最后查询结果

时间:2019-02-25 13:51:39

标签: sql mysqli

SELECT sma_quotes.customer as name, 
       sma_quotes.date as date, 
       sma_quotes.selecttype as type, 
       sma_quotes.biller_id as bl_id, 
       sma_quotes.volume as volume, 
       sma_quotes.containernumber as cn_no, 
       sma_quotes.grand_total as total, 
       sma_sales.paid as paid 
FROM sma_quotes 
     JOIN sma_sales ON sma_sales.quote_id = sma_quotes.id 
WHERE name IS 'Everbest Foods'

错误 SQL查询:说明文件

MySQL说:文档

1064-您的SQL语法有错误;查看与您的MySQL服务器版本相对应的手册以获取正确的语法,以在第1行的“ Everbest Foods的LIMIT 0、25”附近使用

1 个答案:

答案 0 :(得分:0)

查询中没有LIMIT,因此错误消息可疑。

但是,您想要=,而不是IS

WHERE sma_quotes.customer = 'Everbest Foods'