mysql - Can there be a database-agnostic SQL query to fetch top N rows? -


We want to be able to select the top N rows by using an SQL query. What is the target database Oracle or My SQL can be a brilliant approach to this? (Needless to say, we are working with sorted data here.)

top To get 5 scorers,

  
code> to create select id, name, score People P (where people choose number (*) P2 WHERE p2.score & gt; p.score) & lt; = 4

I believe this should work in most places


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -