Oracle 기본정리 - 기본함수1(abs,ceil,floor,exp,log,mod,power,round,trunc)
프로그래밍 정리/Oracle
2019. 11. 29. 10:54
반응형
Oracle 기본정리 - 기본함수1(abs,ceil,floor,exp,log,mod,power,round,trunc)
--abs(값) 절대값
--ceil(값) 무조건 반올림
--floor(값) 무조건 반내림
--exp(값) e^값
--log(a,b) log(a)b
--MOD(a,b) a/b 나머지
--power(a,b) a^b
--round(값,올림자리수) 반올림
--ex) round(1237,-1) => 1240
--ex) round(1231,-1) => 1230
--ex) round(12.126,2) => 12.13
--ex) round(12.121,2) => 12.12
--trunc(값) 소수점 절삭
--trunc(a,b) a값 중 b자리까지, b뒤에서 소수점 절삭
반응형
'프로그래밍 정리 > Oracle' 카테고리의 다른 글
Oracle 기본정리 - 문자함수3(substr, trim, pad, instr, like) (0) | 2019.11.29 |
---|---|
Oracle 기본정리 - 문자함수2(concat, inicap,lower,upper, length,lengthB, substr) (0) | 2019.11.29 |
Oracle 기본정리 - select, where 절, 와일드 카드, 날짜 (0) | 2019.11.29 |
Oracle 기본정리 - distinct, create기본, insert기본, commit (0) | 2019.11.29 |
Oracle 기본정리 - nvl, is null, column계산, 홑 따옴표 (0) | 2019.11.29 |