Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/03/2008, 06:14
edu.net
 
Fecha de Ingreso: julio-2004
Ubicación: Montevideo, Uruguay
Mensajes: 9
Antigüedad: 19 años, 9 meses
Puntos: 0
Re: Problema con Store Procedure

Gracias por el consejo, pero esto también me da error en el case.

Código:
SELECT *
FROM noticias
CASE inPublicadas
	WHEN 1 THEN "WHERE not_publicada = 1"
	WHEN 0 THEN "WHERE not_publicada = 0"
	ELSE
END CASE
ORDER BY not_fecha
;
Error Code : 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CASE inPublicadas
WHEN 1 THEN "WHERE not_publicada = 1"
WHEN 0 THEN "WHERE not' at line 5
(0 ms taken)