sql - SELECT TOP 2 * table ORDER BY country -



sql - SELECT TOP 2 * table ORDER BY country -

why getting more 2 results, when utilize statement?

select top 2 * customers order country desc

you can seek here: http://www.w3schools.com/sql/trysql.asp?filename=trysql_select_top&ss=-1

if using mysql, you're not using proper syntax. don't utilize top... that's sql server (and other "microsoftish" dialects ;-) ). must utilize limit:

select * customers order country desc limit 2

sql sql-order-by

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -