On the problem of array and string traversal

//sql
var sql=[
        "insert into lr(id,) values("",
        ["94"], //
        "","",
        ["DDDfffDDD","DDDDDD","DDDDDD","DDDDDD","DDD333DDD"], 
        "","",
        "",
        """\n\n)"
    ]
//:()
[
   "insert into lr(id,) values("94","DDDfffDDD")",  
    "insert into lr(id,) values("94","DDDDDD")",  
    "insert into lr(id,) values("94","DDDDDD") ",  
    "insert into lr(id,) values("94","DDDDDD")",   
    "insert into lr(id,) values("94","DDD333DDD")"  
] 

how to achieve this?


let res1 = []
sql[1].forEach(value => {
    sql[3].forEach(value1 => {
        let item1 = `${sql[0]}${value}','${value1}'),`;
        res1.push(item1)
    });
})
console.log(res1)
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-1b4340a-2c662.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-1b4340a-2c662.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?