There is only one result for node mysql connection query?

now there are two tables posts and tags

A post in posts can have more than one tag

tags

sql:

 

Mar.22,2021

well, in the end, I found a lot of examples in node mysql's official issues, and found that if you use a single statement directly, many query results return a json or object instead of an array, so the last thing I do is

.
   

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-1b37b9a-4d755.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-1b37b9a-4d755.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?