3
我想打電話從MySql node存儲過程調用MySql的程序?該文件說:如何從節點JS
You can call stored procedures from your queries as with any other mysql driver. If the stored procedure produces several result sets, they are exposed to you the same way as the results for multiple statement queries
我試過在互聯網上搜索它,但得到非常舊的結果,不再工作。
我想:
connection.query('procedure_name()', {84,Bhuwan}, function(err, result) {
connection.destroy();
if (err)
throw err;
callback(err, result);
});
但我得到的錯誤。
任何人都可以提供適當的語法嗎?
什麼是錯誤?您是否也嘗試在查詢字符串中爲查詢中包含的[[84,Bhuwan]]值添加'?'佔位符? – mscdex 2014-09-29 00:08:50
也許這會幫助嗎? http://stackoverflow.com/questions/10546956/is-there-a-driver-for-mysql-on-nodejs-that-supports-stored-procedures – bencripps 2014-09-29 00:37:38