完成工作,但我覺得我違反了編程規則。mysql更高效的查詢方式
select *
from serverTable
where server like ‘[email protected]’
order by reg_date desc
limit 1
union
select *
from serverTable
where server like ‘[email protected]’
order by reg_date desc
limit 1
union
select *
from serverTable
where server like ‘[email protected]’
order by reg_date desc
limit 1
union
select *
from serverTable
where server like ‘[email protected]’
order by reg_date desc
limit 1
union
select *
from serverTable
where server like ‘[email protected]’
order by reg_date desc
limit 1
有沒有更好的方法或正確的方法來完成這件事?
25秒至晚:/ –