Server/Oracle
[Oracle] 데이터를 REPLACE한 후 UPDATE하는 예제 샘플
뒹굴거리는프로도
2018. 11. 27. 16:47
반응형
사용 예시
UPDATE anms_mp3_file
set mp3_path = REPLACE(mp3_path,'\2018\1116', '\2018\0901')
where mp3_path IN (
SELECT mp3_path
FROM anms_mp3_file
where 1=1
and unit_code='2644501'
and meas_dt like '20180901%'
and mp3_path like '%2018\1116\%'
)
그리고 단일 행 2절 이상 리턴되었습니다 에러 뜨면 WHERE IN 사용하기.
반응형