久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用 Web 服務(wù)并使用 Node.js 將 CLOB 插入 Oracle 數(shù)據(jù)

Consuming web service and inserting CLOB using Node.js to Oracle Database table(使用 Web 服務(wù)并使用 Node.js 將 CLOB 插入 Oracle 數(shù)據(jù)庫表)
本文介紹了使用 Web 服務(wù)并使用 Node.js 將 CLOB 插入 Oracle 數(shù)據(jù)庫表的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時送ChatGPT賬號..

我需要使用 node js 使用第三方 webservice 并將其寫入 oracle table .基本上我得到了獲取數(shù)據(jù)的代碼.基本上需要獲取該輸出并插入到 Oracle clob 列中.有人可以通過示例指導(dǎo)我.

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 手冊中有大量關(guān)于在 node-oracledb 中使用 LOB 的文檔,請參閱 使用 CLOB、NCLOB 和 BLOB 數(shù)據(jù).

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);

在您的情況下,您將從您的網(wǎng)絡(luò)服務(wù)而不是磁盤讀取 str文件.由于我不知道該網(wǎng)絡(luò)服務(wù)是什么,因此無法發(fā)表更多評論.

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.

這篇關(guān)于使用 Web 服務(wù)并使用 Node.js 將 CLOB 插入 Oracle 數(shù)據(jù)庫表的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Typeorm Does not return all data(Typeorm 不返回所有數(shù)據(jù))
How to convert #39;2016-07-01 01:12:22 PM#39; to #39;2016-07-01 13:12:22#39; hour format?(如何將“2016-07-01 01:12:22 PM轉(zhuǎn)換為“2016-07-01 13:12:22小時格式?)
Create an Apex form with multiple pages(創(chuàng)建包含多個頁面的 Apex 表單)
UNPIVOT on multiple columns to return multiple columns(UNPIVOT 在多列上返回多列)
Oracle UNPIVOT and SYSDATE giving weird results(Oracle UNPIVOT 和 SYSDATE 給出奇怪的結(jié)果)
How to pivot a table in Oracle PLSQL?(如何在 Oracle PLSQL 中透視表?)
主站蜘蛛池模板: 国产日韩一区二区三区 | 亚洲美女一区 | 97精品国产 | 黄色片视频免费 | 久久亚洲一区 | 人人叉| 久久久资源 | 国产黄视频在线播放 | 亚洲视频欧美视频 | 国产精品毛片 | 日本三级网站在线 | 99re6在线| 亚洲在线一区二区 | 人人干人人艹 | 中文字幕乱码视频32 | 国产目拍亚洲精品99久久精品 | 中文字幕亚洲欧美日韩在线不卡 | 中文字幕一区二区三区乱码在线 | 一区二区三区在线播放 | 日韩av一区在线观看 | 一区二区三区国产好的精 | 99久久免费精品 | 国产精品精品视频 | 国产精品区二区三区日本 | 99免费视频 | 亚洲综合伊人 | 久久看看 | 亚洲精品v| 国产亚洲成av人在线观看导航 | 欧美一区不卡 | 在线三级电影 | 亚洲高清在线观看 | 懂色av蜜桃av | 福利视频一区二区三区 | 国产精品日韩欧美一区二区 | 欧美一区二区在线观看视频 | 欧美精品片 | 成人 在线| 欧美精品一区二区在线观看 | 国产日韩欧美一区二区 | 日本精品一区二区 |