RE: [PHP-ES] OFF TOPIC
| From: | Juan Icaza | Date: | Mon, 26 Mar 2001 19:25:28 +0000 |
| Subject: | RE: [PHP-ES] OFF TOPIC | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-8418@lists.php.net to get a copy of this message | ||
sí, para eso usas la clausula
BETEEWN n AND m
----- Original Message -----
From: FERNANDO CALVO <fcalvo@hotmail.com>
To: <lista@phpes.com>
Sent: Monday, March 26, 2001 12:11 PM
Subject: Re: [PHP-ES] OFF TOPIC
> En mysql se pueden hacer cosas de este estilo:
> SELCET * from TABLA where rownum n,M
> Donde N, M son dos números, si pondo 1,3, me sacará los registros 1,2,3.
> Por lo que para sacar registros aleatorios, podías hacer algo como:
>
> N=numero_aleatorio_dentro_del_rango y hacer:
>
> Select *
> from TABLA
> where N, N+1
>
> Espero que te sirva,
> saludos
> NANDO!
>
>
> >From: "Marco Fuentes" <marco_fuentes@hotmail.com>
> >Reply-To: lista@phpes.com
> >To: "Lista PHP" <lista@phpes.com>
> >Subject: [PHP-ES] OFF TOPIC
> >Date: Mon, 26 Mar 2001 11:54:22 +0100
> >
> >Alguien sabe si se puede hacer una consulta en Mysql donde se saquen los
> >registros en orden aleatorio?????
> >
> >
> >GRACIAS
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com