-3
以下のmysql質問は最初の10行だけを返します。どのようにして10%に制限できますか?MySQLの結果の合計数に対するクエリ結果をパーセントで制限する方法は?
SELECT page,
poso,
diff
FROM (SELECT page,
Count(*) AS poso,
(Sum(Date(timestamp) = Curdate()) - Sum(
Date(timestamp) = Date_sub(Curdate(),
INTERVAL 1 day)))
diff
FROM `behaviour`
WHERE Date(timestamp) >= Date_sub(Curdate(), INTERVAL 1 day)
GROUP BY page
ORDER BY (Sum(Date(timestamp) = Curdate()) - Sum(
Date(timestamp) = Date_sub(Curdate(),
INTERVAL 1 day))
) DESC
LIMIT 10) AS u
ORDER BY diff DESC
の可能性のある重複した[MySQLの:?レコードの量の割合によってLIMIT](http://stackoverflow.com/questions/5615172/mysql-limit-of-the-of-of-of-of-of-record-of-records) –