Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- methodArea
- class
- arguments
- overload
- 콘크리트클래스
- reference
- override
- Polymorphism
- ALTER
- super
- 객체형변환
- eclipse
- fuction
- object
- abstractclass
- Vector
- start()
- string
- concreteclass
- garbagecollection
- 생성자
- 추상클래스
- Eureka
- run()
- MSA
- constantnumber
- Hashtable
- value
- hamobee
- hashCode
Archives
- Today
- Total
뇌운동일지
[Oracle] function 본문
그룹함수 : 데이터 그룹에 대한 처리 결과를 반환
단일행 함수 : 각 행에 대해 처리된 결과를 반황
문자, 숫자, 날짜
SQL자체 대,소문자 구별은 없다.
하지만 값은 구별된다.
(그런데 기본은 소문자)
select now(); <== mysql에서는 가능하다
select sysdate
from dual; <== dual은 임시테이블
table이름이 들어가야하는데 무슨 테이블이 들어가야하는지 모를 때, 임시테이블인 dual을 적어줌.
select stu_grade, avg(stu_height)
from student
where stu_dept = '기계'
group by stu_grade having avg(stu_height)>=160;
select stu_dept, avg(stu_weight)
from student
group by stu_dept;
select nvl(stu_height, 0)
from emp;
'DB > Oracle' 카테고리의 다른 글
[Oracle SQL] select 추가사항 (0) | 2020.05.26 |
---|---|
[Oracle SQL] select 연습문제 (0) | 2020.05.25 |
[Oracle] select (0) | 2020.05.22 |
[Oracle] 데이터베이스 생성, ER 다이어그램 (0) | 2020.05.22 |
oracle 설치 (0) | 2020.05.21 |
Comments