在我的数据库中,我有列date
和country
。我想选择数据,使其按日期递增,按国家/地区递减。
这是我的代码:
SELECT supplier, spnn, date, country, networkname, mcc, mnc, oldprice, newprice, user
FROM supplierpricenotificationhistory
WHERE `supplier` = '6xx'
ORDER BY date DESC , country ASC
但它只按日期按升序排序数据,而不是按国家/地区降序排序。
for example (my coloumns in db)
Date Country
15-4-2014 Bulgaria
16-4-2014 denmark
16-4-2014 Austria
for the above query it looks like this :
Date Country
16-4-2014 Denmark
16-4-2014 Austria
15-4-2014 Bulgaria
i want like this
Date Country
16-4-2014 Austria
16-4-2014 Denmark
15-4-2014 Bulgaria
有人能帮帮我吗?
由于