Error al hacer una consulta Update con Join
Publicado por Yoel (13 intervenciones) el 04/02/2020 23:59:05
Tengo la siguiente situación, estoy tratando de hacer un update con join pero me está generado el siguiente error:
16:44:42 De error del kernel: Error( 1064 ) 42000: "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `informe` AS tabla_a
El código que estoy usando es el siguiente:
Gracias.
16:44:42 De error del kernel: Error( 1064 ) 42000: "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM `informe` AS tabla_a
El código que estoy usando es el siguiente:
1
2
3
4
5
6
7
UPDATE
tabla_a
SET
tabla_a.id_alumno = tabla_b.curp
FROM `informe` AS tabla_a
INNER JOIN `alumnos` AS tabla_b ON tabla_a.nom_alum = CONCAT(tabla_b.nombre,' ',tabla_b.ape_paterno,' ',tabla_b.ape_materno)
WHERE `informe`.`id_cicloescolar` LIKE '%CE0002%'
Gracias.
Valora esta pregunta


0