You are here: Re: Reverse mysql-result « PHP Programming Language « IT news, forums, messages
Re: Reverse mysql-result

Posted by Andy Hassall on 06/29/05 00:10

On 28 Jun 2005 13:53:45 -0700, "frizzle" <phpfrizzle@gmail.com> wrote:

>Hmm, i've thought of your second option,

What second option? Please quote some context when replying.

>but i wondered if i could change things closer
>to the information's root ...
>The Mysql version is recent, but i don't know
>what you mean with subquery.

select id
from (
select id
from t
order by t desc
limit 5
)
order by id

>I also figured i could get the total possible results,
>substract number of uploaded pictures, and then
>use that as the offset within Limit.
>Or would that make things slow (in quite a small db)

Possibly. Try it. I'm more used to Oracle where you'd do this differently, so
can't comment too much on optimising usage LIMIT in MySQL.

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация