개발/정리 내용
MariaDB Built-in Function
aihtnyc_h
2023. 1. 13. 23:04
728x90
반응형
SMALL
(1) single row function : 한 줄 입력, 한 줄 출력
1) Numeric
abs(x), ceil(x), floor(x), round(x, y)
2) Text
lower(str), upper(str), length(str)
substr(str, m, n)
lpad(str, n, text), rpad(str, n, text)
concat(str1, str2)
replace(str, fstr, sstr)
3) Date
add_months()
4) Conversion
to_char()
(2) group(aggregate) function : 여러 줄 입력, 한 줄 출력
1) count(*), distinct
2) min(), max(), avg(), sum()
- group by, order by, having
// 초보자들은 사용하기 어려움
3)order by
SQL의 결과들을 정렬하기 위한 문법
order by 컬럼명1 [asc|desc], 컬럼명2, ---
728x90
반응형
LIST