You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is currently the best way to create such a SELECT list from an object? The following statement does not work in this scenario and creates a key = value list:
sqlstring.format('INSERT INTO `table` SELECT ?? WHERE 1',{id: null,name: "Thomas",age: 34});
The text was updated successfully, but these errors were encountered:
This is unfortunately not really supported out of the box, and due to recent highlights of the insecurity of magical formatting based on the input type, it is unlikely to be added to this module. I would recommend looking in to a full-feature SQL builder module like https://hiddentao.github.io/squel/v4/index.html
If you have complex queries and you want to
INSERT
from aSELECT
query, then you need to be able to set aSELECT
list like this:What is currently the best way to create such a
SELECT
list from an object? The following statement does not work in this scenario and creates akey = value
list:The text was updated successfully, but these errors were encountered: