sábado, 4 de octubre de 2008

¿Cómo solucionar errores de MySQL?

Error de MYSQL. ¿SOLUCIÓN?

Error al intentar efectuar la consulta: getContratacion 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 ') ORDER BY fecha_hora_actualizacion' at line 1SELECT count(*) FROM proceso_contratacion WHERE estado_proceso_precontractual = 'DEFINITIVO' AND ( ) ORDER BY fecha_hora_actualizacion Error al intentar efectuar la consulta: getContratacion 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 ') ORDER BY fecha_hora_actualizacion limit 0,5' at line 1SELECT id_proceso, estado_general_proceso, ifnull( fecha_inicio_evaluacion, 'NS' ) AS fecha_inicio_evaluacion, ifnull( fecha_fin_evaluacion, 'NS' ) AS fecha_fin_evaluacion, objeto_resumido, cuantia, year( fecha_publicacion_tr ) AS ano_proceso, concat('/portalcol/kernel/usuario_externo_contratacion/detalle_proceso.jsp?id_proceso=',id_proceso) AS link, fecha_hora_actualizacion FROM proceso_contratacion WHERE estado_proceso_precontractual = 'DEFINITIVO' AND ( ) ORDER BY fecha_hora_actualizacion limit 0,5 Error al intentar efectuar la consulta: getLicitacion 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 ') ORDER BY fecha_hora_actualizacion' at line 1------SELECT count(*) FROM proceso_contratacion WHERE estado_proceso_precontractual = 'DEFINITIVO' AND ( ) ORDER BY fecha_hora_actualizacion Error al intentar efectuar la consulta: getLicitacion 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 ') ORDER BY fecha_hora_actualizacion limit 0,5' at line 1------SELECT id_proceso, estado_general_proceso, ifnull( fecha_inicio_evaluacion, 'NS' ) AS fecha_inicio_evaluacion, ifnull( fecha_fin_evaluacion, 'NS' ) AS fecha_fin_evaluacion, objeto_resumido, cuantia, year( fecha_publicacion_tr ) AS ano_proceso, concat('/portalcol/kernel/usuario_externo_licitacion/detalle_proceso.jsp?id_proceso=',id_proceso) AS link, fecha_hora_actualizacion FROM proceso_contratacion WHERE estado_proceso_precontractual = 'DEFINITIVO' AND ( ) ORDER BY fecha_hora_actualizacion limit 0,5 Error al intentar efectuar la consulta: getConvocatoria 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 ') ORDER BY fecha_hora_actualizacion' at line 1SELECT count(*) FROM proceso_contratacion WHERE estado_proceso_precontractual = 'DEFINITIVO' AND ( ) ORDER BY fecha_hora_actualizacion Error al intentar efectuar la consulta: getConvocatoria 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 ') ORDER BY fecha_hora_actualizacion limit 0,5' at line 1SELECT id_proceso, estado_general_proceso, ifnull( fecha_apertura, 'NS' ) AS fecha_inicio_evaluacion, ifnull( fecha_cierre, 'NS' ) AS fecha_fin_evaluacion, ifnull(objeto_resumido,"") AS objeto_resumido, cuantia, year( fecha_reg ) AS ano_proceso, concat('/portalcol/kernel/usuario_externo_convocatoria/detalle_proceso.jsp?id_proceso=',id_proceso) AS link, ifnull(fecha_hora_actualizacion,"") AS fecha_hora_actualizacion FROM proceso_contratacion WHERE estado_proceso_precontractual = 'DEFINITIVO' AND ( ) ORDER BY fecha_hora_actualizacion limit 0,5 Error al intentar efectuar la consulta: getNumRegFAQsYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fecha_hora_actualizacion' at line 1------SELECT count(*) as cnt FROM faq WHERE estado_registro <> 'ELIMINADO' AND () ORDER BY fecha_hora_actualizacion Error al intentar efectuar la consulta: getFAQsYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fecha_hora_actualizacion limit 0,5' at line 1------SELECT pregunta , ifnull( respuesta, "" ) AS respuesta, id , padre_id, fecha_hora_actualizacion FROM faq WHERE estado_registro <> 'ELIMINADO' AND () ORDER BY fecha_hora_actualizacion limit 0,5 Error al intentar efectuar la consulta: getEventos 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 ') ORDER BY fecha_hora_actualizacion' at line 1Error al intentar efectuar la consulta: getEventos 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 ') ORDER BY fecha_hora_actualizacion limit 0,5' at line 1 Error al intentar efectuar la consulta: getNoticias 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 ') ORDER BY fecha_hora_actualizacion' at line 1Error al intentar efectuar la consulta: getNoticias 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 ') ORDER BY fecha_hora_actualizacion limit 0,5' at line 1 Error al intentar efectuar la consulta: getContenido 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 'ORDER BY fecha_hora_actualizacion' at line 1SELECT count(*) FROM contenido WHERE estado=1 AND ORDER BY fecha_hora_actualizacion
Me gustaría que se fueran solucionando los posibles errores que he expuesto anteriormente a fin de facilitar a muchos programadores con bases de datos que se vuelven locos buscando entre todo el código para modificar unas comillas o un nombre.

No hay comentarios: