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

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

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

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

        使用 Web 服务并使用 Node.js 将 CLOB 插入 Oracle 数据

        时间:2023-08-20
        <i id='D5b6G'><tr id='D5b6G'><dt id='D5b6G'><q id='D5b6G'><span id='D5b6G'><b id='D5b6G'><form id='D5b6G'><ins id='D5b6G'></ins><ul id='D5b6G'></ul><sub id='D5b6G'></sub></form><legend id='D5b6G'></legend><bdo id='D5b6G'><pre id='D5b6G'><center id='D5b6G'></center></pre></bdo></b><th id='D5b6G'></th></span></q></dt></tr></i><div id='D5b6G'><tfoot id='D5b6G'></tfoot><dl id='D5b6G'><fieldset id='D5b6G'></fieldset></dl></div>

            <tfoot id='D5b6G'></tfoot>
              <tbody id='D5b6G'></tbody>
                <bdo id='D5b6G'></bdo><ul id='D5b6G'></ul>
              • <legend id='D5b6G'><style id='D5b6G'><dir id='D5b6G'><q id='D5b6G'></q></dir></style></legend>

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

                • 本文介绍了使用 Web 服务并使用 Node.js 将 CLOB 插入 Oracle 数据库表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我需要使用 node js 使用第三方 webservice 并将其写入 oracle table .基本上我得到了获取数据的代码.基本上需要获取该输出并插入到 Oracle clob 列中.有人可以通过示例指导我.

                  i need to consume third party webservice using node js and write it on oracle table . basically i got the code for getting the data. Basically need to take that output and insert into a Oracle clob columns.Can someone guide me with examples.

                  推荐答案

                  一些资源:

                  • https://github.com/oracle/node-oracledb/tree/master/examples 有 LOB 示例,例如 lobinsert1.js 和 lobinsert2.js

                  • https://github.com/oracle/node-oracledb/tree/master/examples has LOB examples, for example lobinsert1.js and lobinsert2.js

                  node-oracledb 手册中有大量关于在 node-oracledb 中使用 LOB 的文档,请参阅 使用 CLOB、NCLOB 和 BLOB 数据.

                  There is plenty of documentation on using LOBs in node-oracledb in the node-oracledb manual, see Working with CLOB, NCLOB and BLOB Data.

                  例如:

                      // Insert a CLOB
                      const str = fs.readFileSync(clobInFileName, 'utf8');
                      result = await connection.execute(
                        `INSERT INTO no_lobs (id, c) VALUES (:id, :c)`,
                        { id: 1, c: str }
                      );
                      if (result.rowsAffected != 1)
                        throw new Error('CLOB was not inserted');
                      else
                        console.log('CLOB inserted from ' + clobInFileName);
                  

                  在您的情况下,您将从您的网络服务而不是磁盘读取 str文件.由于我不知道该网络服务是什么,因此无法发表更多评论.

                  In your case you would read str from your web service instead of a disk file. Since I don't know what that web service is, I can't comment more.

                  node-oracledb 的安装说明在这里.

                  Installation instructions for node-oracledb are here.

                  这篇关于使用 Web 服务并使用 Node.js 将 CLOB 插入 Oracle 数据库表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 Web 服务并使用 Node.js 将 CLOB 插入 Oracle 数据 下一篇:Python:Django:如何根据 order_id 在 order_data 中获取

                  相关文章

                  最新文章

                  <legend id='6Z2NI'><style id='6Z2NI'><dir id='6Z2NI'><q id='6Z2NI'></q></dir></style></legend>

                      • <bdo id='6Z2NI'></bdo><ul id='6Z2NI'></ul>
                      <tfoot id='6Z2NI'></tfoot>

                    1. <i id='6Z2NI'><tr id='6Z2NI'><dt id='6Z2NI'><q id='6Z2NI'><span id='6Z2NI'><b id='6Z2NI'><form id='6Z2NI'><ins id='6Z2NI'></ins><ul id='6Z2NI'></ul><sub id='6Z2NI'></sub></form><legend id='6Z2NI'></legend><bdo id='6Z2NI'><pre id='6Z2NI'><center id='6Z2NI'></center></pre></bdo></b><th id='6Z2NI'></th></span></q></dt></tr></i><div id='6Z2NI'><tfoot id='6Z2NI'></tfoot><dl id='6Z2NI'><fieldset id='6Z2NI'></fieldset></dl></div>
                    2. <small id='6Z2NI'></small><noframes id='6Z2NI'>