Jump to content

syntaxing.


IwnfuM

Recommended Posts

Sounds like homework.

 

1.select last 10 from 'table'.

 

Assuming you have a date column:

ORDER by [date] DESC LIMIT 10;

 

2.select last 10 from 'table' where id = '2'.

 

Same as the last query except the WHERE id = '2' condition.

 

All if this syntax is in the MySQL manual.  Next time read it so you can learn for yourself.

Link to comment
https://forums.phpfreaks.com/topic/221995-syntaxing/#findComment-1148727
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.