This is supposed to be a simple connection to access a localhost database. Important information: I’ve tried very similar code, if not the exact same, and it works. The difference is I didn’t put the connection in a class variable (this.connection) but because it’s not async I didn’t think much of it. So maybe it’s simply a just javascript syntax
Tag: node-mysql
Subquery in node.js sometimes works and sometimes not
i have created a node.js query where it works fine sometimes , it is an insert of a club and then insert the players in a second query , there is a subquery that takes the last inserted id of the Auto increment id in the first query , after execution i noticed that sometimes the players are inserted with