Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/04/2008, 01:47
Avatar de scout_vlc
scout_vlc
 
Fecha de Ingreso: julio-2007
Ubicación: Valencia
Mensajes: 141
Antigüedad: 16 años, 10 meses
Puntos: 0
Re: Consulta De Varias Tablas Con Php

MUCHÍSIMAS GRACIAS:
me sale el siguiente error:

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 'entradas WHERE grupo = P AND idin >= 1' at line 1

La estructura de las tablas implicadas es:

CREATE TABLE `entradas` (
`idin` int(11) NOT NULL auto_increment,
`codproduct` int(11) NOT NULL,
`nserie` varchar(30) NOT NULL,
`codtec` varchar(5) NOT NULL,
`origen` varchar(25) NOT NULL,
`fecha` date NOT NULL,
`fallo` varchar(100) NOT NULL,
`observain` varchar(300) default NULL,
PRIMARY KEY (`idin`),
KEY `origen` (`origen`),
KEY `fecha` (`fecha`),
KEY `codproduct` (`codproduct`),
KEY `codtec` (`codtec`),
KEY `nserie` (`nserie`)
)

CREATE TABLE `tecnicos` (
`codtec` varchar(5) NOT NULL,
`nomtec` char(30) NOT NULL,
`grupo` char(1) NOT NULL,
`activo` tinyint(1) NOT NULL,
PRIMARY KEY (`codtec`)
)