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

.
   

Menu