0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ORACLEのDBに登録されるCLOB型のデータを文字列で取得する方法

Posted at

使用しているDB:Oracle

substar関数を使いDBで設定されているVARCHARの桁数で分割して取得する

select
select
  DBMS_LOB.SUBSTR(NAIYOU_SYOUSAI, 120, 1) AS 詳細1
  , DBMS_LOB.SUBSTR(NAIYOU_SYOUSAI, 120, 121) AS 詳細2 
from
  TABLE_SIEN 
ORDER BY
  UPD_DATE DESC offset 1 rows fetch next 2 rows only

offsetはスキップする行
fetch nextは読み込む行数

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?