<small id='X5MG3'></small><noframes id='X5MG3'>

  • <i id='X5MG3'><tr id='X5MG3'><dt id='X5MG3'><q id='X5MG3'><span id='X5MG3'><b id='X5MG3'><form id='X5MG3'><ins id='X5MG3'></ins><ul id='X5MG3'></ul><sub id='X5MG3'></sub></form><legend id='X5MG3'></legend><bdo id='X5MG3'><pre id='X5MG3'><center id='X5MG3'></center></pre></bdo></b><th id='X5MG3'></th></span></q></dt></tr></i><div id='X5MG3'><tfoot id='X5MG3'></tfoot><dl id='X5MG3'><fieldset id='X5MG3'></fieldset></dl></div>
  • <legend id='X5MG3'><style id='X5MG3'><dir id='X5MG3'><q id='X5MG3'></q></dir></style></legend>

    <tfoot id='X5MG3'></tfoot>

        • <bdo id='X5MG3'></bdo><ul id='X5MG3'></ul>

        是否有支持存储过程的 nodejs 上的 mysql 驱动程序?

        Is there a driver for mysql on nodejs that supports stored procedures?(是否有支持存储过程的 nodejs 上的 mysql 驱动程序?)
          <tbody id='uEdVG'></tbody>
        <i id='uEdVG'><tr id='uEdVG'><dt id='uEdVG'><q id='uEdVG'><span id='uEdVG'><b id='uEdVG'><form id='uEdVG'><ins id='uEdVG'></ins><ul id='uEdVG'></ul><sub id='uEdVG'></sub></form><legend id='uEdVG'></legend><bdo id='uEdVG'><pre id='uEdVG'><center id='uEdVG'></center></pre></bdo></b><th id='uEdVG'></th></span></q></dt></tr></i><div id='uEdVG'><tfoot id='uEdVG'></tfoot><dl id='uEdVG'><fieldset id='uEdVG'></fieldset></dl></div>

          1. <tfoot id='uEdVG'></tfoot>

          2. <legend id='uEdVG'><style id='uEdVG'><dir id='uEdVG'><q id='uEdVG'></q></dir></style></legend>

                <small id='uEdVG'></small><noframes id='uEdVG'>

                  <bdo id='uEdVG'></bdo><ul id='uEdVG'></ul>

                  本文介绍了是否有支持存储过程的 nodejs 上的 mysql 驱动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在为支持存储过程的 nodejs 寻找 mySQL 驱动程序.我一直在使用的 http://nodejsdb.org/db-mysql/ 给出了错误

                  I am looking for a mySQL driver for nodejs that supports stored procedures. http://nodejsdb.org/db-mysql/ that I have been using gives the error

                  PROCEDURE 无法返回给定上下文中的结果集

                  PROCEDURE can't return a result set in the given context

                  推荐答案

                  它适用于 nodejs-mysql-本地

                  存储过程:

                  DELIMITER //
                  CREATE PROCEDURE test1p1()
                    BEGIN
                    SELECT 1+1;
                    END //
                  DELIMITER ;
                  

                  node.js 脚本:

                  node.js script:

                  mysql = require('mysql-native');
                  var db = mysql.createTCPClient();
                      db.auth('test', 'tester', ''); // db, user, password
                  
                  db.query('call test.test1p1;').on('row', function(r) {
                      console.log(r);
                  }).on('end', function() {
                      console.log('OK!');
                  });
                  

                  输出:

                  { '1+1': 2 }
                  OK!
                  

                  这篇关于是否有支持存储过程的 nodejs 上的 mysql 驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)
                  • <bdo id='XDrZd'></bdo><ul id='XDrZd'></ul>
                        <tfoot id='XDrZd'></tfoot>
                        <i id='XDrZd'><tr id='XDrZd'><dt id='XDrZd'><q id='XDrZd'><span id='XDrZd'><b id='XDrZd'><form id='XDrZd'><ins id='XDrZd'></ins><ul id='XDrZd'></ul><sub id='XDrZd'></sub></form><legend id='XDrZd'></legend><bdo id='XDrZd'><pre id='XDrZd'><center id='XDrZd'></center></pre></bdo></b><th id='XDrZd'></th></span></q></dt></tr></i><div id='XDrZd'><tfoot id='XDrZd'></tfoot><dl id='XDrZd'><fieldset id='XDrZd'></fieldset></dl></div>
                          <tbody id='XDrZd'></tbody>

                        <small id='XDrZd'></small><noframes id='XDrZd'>

                            <legend id='XDrZd'><style id='XDrZd'><dir id='XDrZd'><q id='XDrZd'></q></dir></style></legend>