为什么我的子查询没有执行?

时间:2013-11-24 05:36:20

标签: mysql

我将在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");

0 个答案:

没有答案