嘗試對數據庫進行一些查詢,但我遇到了問題。有人可以幫我正確查詢嗎?我的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' –
我剛編輯我的問題,你能幫幫我,謝謝 –
有什麼錯誤? –