Answer the question
In order to leave comments, you need to log in
Mysql2 returns one value instead of multiple, why?
I am using mysql2 package for nodejs. I'm trying to make a query like this:
const requested = [47, 48, 49];
const images = await connection.query(
'SELECT * FROM images WHERE id = ?',
requested,
);
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