Article View: es.comp.os.linux.programacion
Article #6299Re: Consulta en mysql
From: sio2
Date: Fri, 11 Jul 2003 20:16
Date: Fri, 11 Jul 2003 20:16
24 lines
1951 bytes
1951 bytes
El viernes, 11 de julio de 2003, a las 19:03 GMT, Iv�n S�nchez Ortega escribi�:
>
>> Evidentemente la primera parte del problema la s�:
>>
>> SELECT @maximo:=MAX(campo_que_interesa) FROM tabla1;
>>
>> Pero ahora no s� c�mo generar la segunda tabla a partir de la variable
>> @maximo.
>
>#!/usr/bin/php4
> [...]
S�, claro pero no hay una forma de hacerlo usando el lenguaje SQL del
cliente que trae mysql?�No hay ninguna forma de hacer un bucle en SQL?
--
Dejemos metaf�sicas quimeras;
vuesas mercedes garlen en chacota:
que no est� el mundo para hablar de veras.
--- Tom� de Burguillos ---
Si Di�xido de Silicio | Debian GNU/Linux
/ \ (SiO2) | Jos� Miguel S�nchez Al�s
O O Mineral de Cuarzo | sio2.arr@ba.online.fr | URL #257033
Technical Details
Message-ID:
<slrnbgu6o1.5db.sio2.arr@cebolleta.net.dhis.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!22.red-80-37-129.pooles.rima-tde.NET!not-for-mailReferences:
<slrnbgu024.3k6.sio2.arr@cebolleta.net.dhis.org> <20030711190300.47F26D.NOFFLE@BlackSpark.local>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,640dfadfbdbf4597 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-07-11 13:16:38 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!22.red-80-37-129.pooles.rima-tde.NET!not-for-mail From: sio2 <sio2.arr@ba.online.fr> Newsgroups: es.comp.os.linux.programacion Subject: Re: Consulta en mysql Date: Fri, 11 Jul 2003 22:16:01 +0200 Lines: 24 Message-ID: <slrnbgu6o1.5db.sio2.arr@cebolleta.net.dhis.org> References: <slrnbgu024.3k6.sio2.arr@cebolleta.net.dhis.org> <20030711190300.47F26D.NOFFLE@BlackSpark.local> Reply-To: sio2.arr@ba.online.fr NNTP-Posting-Host: 22.red-80-37-129.pooles.rima-tde.net (80.37.129.22) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de 1057954596 7344762 80.37.129.22 (16 [113866]) X-Orig-Path: cebolleta.net.dhis.org!news User-Agent: slrn/0.9.7.4 (Linux)