Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/02/2006, 13:31
Avatar de Callaghan
Callaghan
 
Fecha de Ingreso: enero-2006
Mensajes: 58
Antigüedad: 19 años, 2 meses
Puntos: 1
Cita:
CREATE VIEW vista
AS SELECT t.idvisita, t.fecha_visita, t.nif, r.idempresa, s.clase
FROM tbl_visita t, tbl_zona s, tbl_empresa r
where r.codigopostal=s.codpostal AND r.centrotrabajo=0 AND t.idempresa=r.idempresa;
Error
Cita:
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 'VIEW vista
AS SELECT t.idvisita, t.fecha_visita, t.nif, r.idempresa, s.clase
F' at line 1
gracias