The use of express-mysql in

var a = "12714"

select * from table where id in"${a}"
Why does this sql return only one piece of data for advice

Mar.03,2021

try this var a = "(122.14)" or

var a=[12,14];
select * from table where id in '${a}'

FIND_IN_SET () this function solves

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a983-2c254.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a983-2c254.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?