'clob'에 해당되는 글 1건

  1. 2008.12.04 [Oracle] Clob 검색방법
Database2008. 12. 4. 08:23
출처 r/oØ\ㄹı`s Blog | 아프리카
원문 http://blog.naver.com/greatysi/80021854335


1. CLOB Table 생성.

SQL> create table test_table ( content clob );

Table created.

2. 문자열 데이터 입력.

SQL> INSERT INTO test_table

                          (

                            content

                          )

             VALUES (

                            'aa bb cc'

                          );

1 row created.

SQL> INSERT INTO test_table

                          (

                            content

                          )

             VALUES (

                            'dd ee ff'

                          );
1 row created.

 

3. CLOB Table 검색.

 

  SELECT *
     FROM test_table

   WHERE DBMS_LOB.INSTR( content, 'aa' )>0;

 

 

'test_table'의 'content' 라는 필드에서 'aa' 라는 단어가 들어가 있는 row를 보여준다.

 


Posted by 양군이당
TAG ,

댓글을 달아 주세요