Answer the question
In order to leave comments, you need to log in
MySQL in nodejs, syntax error, why?
mysql2 package.
await connection.query(
'UPDATE files SET deletedAt = (?) WHERE key IN (?)',
[now, [keys]]
);
Error: 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 'key IN (('image/1562423492611.png'))' at line 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question