CLOBのすべてのデータをstringに変換したいと考えています。 DBMC_LOB.SUBSTRは、一度に4000文字をフェッチする方法を提供します。私はMS SQLのバックグラウンドであり、Oracleのクエリを認識していません。誰かが構文を教えてくれますか?私は、関数を作成し、以下文字列を取得するためのCLOBによるループ・ループ
// Get the length of CLOB
// totalIterationsRequired = length/4000;
// LOOP around the CLOB and fetch 4000 char at once
For i in 1..totalIterationsRequired
LOOP
// Insert the substring into a varchar2
// DBMC_LOB.SUBSTR(xml_value,4000*i,(4000*(i-1)+1)
END LOOP
// The function will return the varchar2
です。ありがとう。 – anonyXmous
私は構文に関して助けが必要です。質問 – Ankit