return pool.query`select * from mytable where id = ${value}`
上記の完全なjavascriptと同等ですか?メソッド直後のES6構文文字列
私は
return pool.query(`select * from mytable where id = $(value)`)
を試みたが、どうやらそれは違うのです。
それはhttps://www.npmjs.com/package/mssql感謝
return pool.query`select * from mytable where id = ${value}`
上記の完全なjavascriptと同等ですか?メソッド直後のES6構文文字列
私は
return pool.query(`select * from mytable where id = $(value)`)
を試みたが、どうやらそれは違うのです。
それはhttps://www.npmjs.com/package/mssql感謝
からこれを試してみてくださいされています
return pool.query(`select * from mytable where id = ${value}`)
[戻り値は関数を呼び出すバックグック](https://stackoverflow.com/questions/29660381/backticks-calling-a-function) – Marty
「return pool.query(select mytable from id = "+ value)' – Weedoze