달력

52024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
반응형

1
2
3
4
SELECT *
FROM   USER_SOURCE
WHERE  1=1
AND    TEXT LIKE  '%검색어%' 
cs

Posted by 유령회사
|
반응형

오라클이 설치하기 싫어서 실행장면은 스샷 없음 ㅠ


1
2
3
4
5
6
SELECT 
regexp_replace(LISTAGG( 필드 || ',' ) 
                            WITHIN GROUP ( ORDER BY 정렬기준 필드)
                          ,  '([^,]+)(,\1)+''\1')
FROM T
 
cs


Posted by 유령회사
|
반응형

https://stackoverflow.com/questions/36947083/deleting-a-non-unique-procedure-on-db2

 

 

Assuming this is DB2 for LUW.

DB2 allows you to "overload" procedures with the same name but different number of parameters. Each procedure receives a specific name, which can be provided by you or generated by the system and which will be unique.

To determine the specific names of your procedures, run

SELECT ROUTINESCHEMA, ROUTINENAME, SPECIFICNAME FROM SYSCAT.ROUTINES
WHERE ROUTINENAME = 'BT_CU_ODOMETER'

You can then drop each procedure individually:

DROP SPECIFIC PROCEDURE <specific name>

'데이터베이스' 카테고리의 다른 글

[오라클]procedure Function Package 검색  (0) 2018.07.07
[오라클]LISTAGG 중복제거  (0) 2018.06.16
Posted by 유령회사
|