날짜함수
-
mariaDB) 내장 함수 정리SQL/sql 문법(mysql, mariaDB) 2024. 5. 7. 13:53
▤ 목차">HTML 삽입미리보기할 수 없는 소스✔ 1. 문자형 함수⌨ substr (문자 자르기)SELECT SUbstr('hello World',3) FROM DUAL; SELECT SUbstr('hello World',3,6) FROM DUAL; SELECT SUBstr('hello World',-3,2) FROM DUAL; SELECT SUBstr(jikwon_name,2) FROM jikwon WHERE jikwon_no ⌨ 데이터 문자열 길이 lengthSELECT LENGTH('hello') FROM DUAL; ⌨ 특정 문자 위치 찾기 instrselect instr('hello','e') FROM DUAL; ⌨특정 문자 채우기 LPAD/RPA..