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说:文档
答案 0 :(得分:0)
查询中没有LIMIT
,因此错误消息可疑。
但是,您想要=
,而不是IS
:
WHERE sma_quotes.customer = 'Everbest Foods'