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

'개발 > 정리 내용' 카테고리의 다른 글

CGI (Common Geteway Interface)  (0) 2023.01.14
정규화(Normalization)  (0) 2023.01.13
SQL II  (0) 2023.01.13
데이터 모델링 1  (0) 2023.01.13
Dual 테이블(Oracle, MySQL 계열)  (0) 2023.01.13

+ Recent posts