sql command

  • Thread starter Thread starter miladhatam
  • Start date Start date
M

miladhatam

hi
how can i select last 5 fields of my table
i don't know it sql command
 
hi
how can i select last 5 fields of my table
i don't know it sql command

SELECT field6, field7, field8, field9, field10 FROM mytable
 
sorry alexy :)
oh i made a mistake i want to select 5 last records :)
sorry ...
have any idea ?
thanks
 
sorry alexy :)
oh i made a mistake i want to select 5 last records :)
sorry ...
have any idea ?
thanks

SELECT TOP 5 * FROM mytable ORDER BY something DESC

where "something" is a name of the field which used for a consecutive
values like rowid, date created, etc...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top