I am developing a Rest API using NodeJS and MySQL as the atabase. I use the standard package of npm for MySQL. I am using the following statement at the moment of insert data into DB:
INSERT INTO DATABASE.TABLE SET ?
And the JSON that I am trying to insert is:
{
name : "Lorem",
surname : "Ipsum",
email : "lorem.ipsum@mail.com"
}
But in the database the order of columns is:
Do you know if the order of the fields matters, or does the NodeJS mysql package respect the name of the columns?