如何用mysql按照百分比拿數據 比如在一個表里面 type=1 隨機拿40% type=2 隨機拿 30% type=3 拿 20% 其余拿 10%語言是thinkphp,該如何寫sql呢 查看完整描述