RTRIM
REPLACE
INSTR
부분 문자열을 치환합니다.
REPLACE(str, from, to)
아래 값을 입력하면 예제에 즉시 반영됩니다.
phone
phone_plain
customers
-- 전화번호 하이픈 제거 SELECT REPLACE(phone, '-', '') AS phone_plain FROM customers;