Bonsoir,

à priori, ma requête est correcte :
Code sql : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
UPDATE `t_ap_application` 
    SET plat_ident = 1
    WHERE app_ident = 79

Code sql : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
CREATE TABLE `t_ap_application` (
  `app_ident` int unsigned NOT NULL AUTO_INCREMENT,
  `app_name` varchar(100) DEFAULT NULL,
  `lic_ident` int unsigned DEFAULT NULL,
  `plat_ident` int unsigned DEFAULT NULL,
  PRIMARY KEY (`app_ident`),
  KEY `fk_ap_application_ibfk_1` (`lic_ident`),
  KEY `fk_ap_application_ibfk_2` (`plat_ident`),
  CONSTRAINT `fk_ap_application_ibfk_1` FOREIGN KEY (`lic_ident`) REFERENCES `t_li_license` (`lic_ident`),
  CONSTRAINT `fk_ap_application_ibfk_2` FOREIGN KEY (`plat_ident`) REFERENCES `t_pl_platform` (`plat_ident`)
) ENGINE=InnoDB AUTO_INCREMENT=786 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

Code sql : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
CREATE TABLE `t_pl_platform` (
  `plat_ident` int unsigned NOT NULL AUTO_INCREMENT,
  `plat_platform` varchar(100) DEFAULT NULL,
  `plat_platformowner` int DEFAULT NULL,
  `plat_publisher` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`plat_ident`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

Et pourtant :
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 't_ident = 1 WHERE app_ident = 79' at line 1
Peut-on m'expliquer ?