尝试对数据库进行一些查询,但我遇到了问题。有人可以帮我正确查询吗?我的MYSQL查询错误?
这就是我需要
SELECT
IdNews, Caption, NewsText, NumberOfViews, NumberOfComments,
PublishDate, CoinValue, category.IdNewsCategory,
NewsCategory, country.IdCountry, CountryName, news.IdUser,
FirstName, LastName, Picture, DateTimeUpCoin
FROM
news
INNER JOIN
category ON category.IdNewsCategory = news.IdNewsCategory
INNER JOIN
country ON news.IdCountry = country.IdCountry
INNER JOIN
user ON user.IdUser = news.IdUser
WHERE
news.IdCountry = 1
LIMIT 0, 10
ORDER BY
NumberOfViews DESC
与尝试'WHERE news.IdCountry = 1' –
我刚编辑我的问题,你能帮帮我,谢谢 –
有什么错误? –