oracle을 mysql로 바꾸고 싶어요

조회수 1374회
select rs , count(*)as countnum from (select REGEXP_SUBSTR(old_address, '[^ ]+',1, 1) as rs from parking_lot where old_address like '%') a where rs is not null group by rs;


select rs , count(*)as countnum from (select REGEXP_SUBSTR(old_address, '[^ ]+',1, 2) as rs from parking_lot where old_address like '%대전광역시%') a where rs is not null group by rs;


select rs , count(*)as countnum from (select REGEXP_SUBSTR(old_address, '[^ ]+',1, 3) as rs from parking_lot where old_address like '%대전광역시 동구%') a where rs is not null group by rs;

이렇게 세가지를 mysql로 바꾸고 싶은데 어떻게 하나요

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)