嗨得到这个语法错误在我的SQL查询:SQL查询提供了语法错误
'#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 'A (Status) VALUES ("NOK") INNER JOIN lm_Schwellwert S ON A.Typ = S.Typ WHERE A.B' at line 1
这是我的查询:
INSERT INTO lm_Artikel A INNER JOIN lm_Schwellwert S
ON A.Typ = S.Typ (Status) VALUES ("NOK") WHERE A.Bestand < S.Schwellwert
你能帮助我找到错误,我不知道什么是错的。
请阅读http://dev.mysql.com/doc/refman/5.5/en/insert。首先。 – eisberg
** lm_Artikel **表中有多少列? –