尝试执行查询时,我收到此错误消息。到目前为止,我试图做的一切都让我失望。
Error
SQL query: Documentation
SELECT Catagory.Category
FROM Catagory
LEFT JOIN products.Price
ON Catagory.Category=products.Price
WHERE ((Catagory.Category='Ring' OR Catagory.Category='Earings') AND (products.Price<=30))
ORDER BY products.Price LIMIT 0, 25
MySQL said: Documentation
**#1142 - SELECT command denied to user '2450097_onlinestore'@'185.176.40.25' for table 'Price'**
这是代码。
SELECT Catagory.Category
FROM Catagory
LEFT JOIN products.Price
ON Catagory.Category=products.Price
WHERE ((Catagory.Category='Ring' OR Catagory.Category='Earings') AND (products.Price<=30))
ORDER BY products.Price
答案 0 :(得分:0)
先检查权限。
使用mysql;
从用户中选择*;
答案 1 :(得分:0)
默认情况下,用户无权执行select语句。您必须GRANT
用户权限:
https://dev.mysql.com/doc/refman/5.7/en/grant.html