我将在mysql中使用Sub查询,问题是当我尝试执行它时,我收到此错误,应该提到我的列名是正确的。
Error message: #1064 - You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the
right syntax to use near 'Products      WHERE
productLine In             (SELECT text' at line 2
SELECT ProductName, buyPrice
FROM Products
WHERE productLine In
(SELECT textDescription
FROM productline
WHERE productLine = "Motorcycles");