in reply to Perl and MySQL - getting a random record

Does MySQL actually garantee any reasonable behaviour when doing ORDER BY RAND()? C's qsort routine requires its comparison function to behave, and so does Perl.

What also might be happening is that MySQL has actually cached the results - if on a later, identical query the table content hasn't changed, it might actually serve the answer from the cache. But that's just speculation from my side.

Of course, this question has absolutely nothing to do with Perl.

Abigail

Replies are listed 'Best First'.
Re: Re: Perl and MySQL - getting a random record
by powerhouse (Friar) on Feb 06, 2003 at 00:36 UTC
    Of course, this question has absolutely nothing to do with Perl

    Oh, sorry, I thought it was in a Perl script inside a Perl subroutine. I guess I was mistaken... LOL

    thx,
    Richard
      Care to point out the Perl issue then?

      Abigail

      A reply falls below the community's threshold of quality. You may see it by logging in.