skip to Main Content

How to assign values to a sql query inside multiple where clause and run query in single command – Mysql

I have values array as : const params = [ ['2022-12-10', 'aaaaa', '2022-12-01', 'xhxha', '2022-12-10'], ['2022-12-11', 'ababa', '2022-12-01', 'xhxha', '2022-12-11'], ['2022-12-12', 'acaca', '2022-12-01', 'xhxha', '2022-12-12'], ['2022-12-13', 'adada', '2022-12-01', 'xhxha', '2022-12-13'], ]; const data = await db.query(`select id, title, DATE_FORMAT(end_date,"%Y-%m-%d") as…

VIEW QUESTION
Back To Top
Search