Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/07/2007, 11:32
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Re: Sentencia mysql para agrupar.

Prueba:

Código:
select max(id) as id, campo_texto,campo1,campo2 from tabla group by campo_texto,campo1,campo2