일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- 키즈캠핑장
- alv with ida
- 일몰맛집
- HANA SQL
- read_text to string
- FIELDCATALOG
- 값 제한
- reduce
- ABAP
- 포천 레이크문
- 영월 장박
- read_text 변환
- 클러스터 뷰 이벤트
- SAP
- 캠핑 장박
- 키즈 캠핑장
- fuzzy search
- 우중캠핑
- 남강캠프
- include name
- WD4A
- view cluster
- 오크돔
- 해루질
- 블로우쉘터
- 장박
- 원주 캠핑장
- Hana
- New Syntax
- 가족캠핑
- Today
- Total
Do.
HANA SQL Handbook 본문
SELECT SESSION_USER "session user" FROM DUMMY;
*--------------------------------------------
*-- Conversion Function
*--------------------------------------------
SELECT FLOOR (14.5) "floor" FROM DUMMY;
SELECT TO_DECIMAL(7654321.888888, 10, 3) "to decimal"
FROM DUMMY;
*--------------------------------------------
*-- String Function
*--------------------------------------------
SELECT TRIM ('a' FROM 'aaa123456789aa') "trim both" FROM DUMMY;
SELECT UPPER ('Ant') "uppercase"
FROM DUMMY;
SELECT CONCAT ('C', 'at') "concat" FROM DUMMY;
SELECT REPLACE ('DOWNGRADE DOWNWARD','DOWN', 'UP') "replace"
FROM DUMMY;
SELECT RTRIM ('endabAabbabab','ab') "rtrim" FROM DUMMY;
SELECT RIGHT('HI0123456789', 20) "right" FROM DUMMY;
SELECT WEEK ('2017-01-02') FROM DUMMY;
SELECT LENGTH ('length in char') "length" FROM DUMMY;
SELECT SUBSTRING ('1234567890',4,2) "substring" FROM DUMMY;
*--------------------------------------------
*-- Date Function
*--------------------------------------------
SELECT CURRENT_DATE "current date" FROM DUMMY;
SELECT
DAYS_BETWEEN (TO_DATE ('2009-12-05', 'YYYY-MM-DD'),
TO_DATE('2010-01-05', 'YYYY-MM-DD')) "days between"
FROM DUMMY;
SELECT TO_DATE('2010-01-12', 'YYYY-MM-DD') "to date"
FROM DUMMY;
SELECT WEEKDAY (TO_DATE ('2010-12-31', 'YYYY-MM-DD')) "week day"
FROM DUMMY;
SELECT TO_VARCHAR (TO_DATE('2009-12-31'), 'YYYY/MM/DD') "to varchar"
FROM DUMMY;
SELECT
YEARS_BETWEEN(TO_DATE('2001-01-01'),
TO_DATE('2003-03-14')) "years_between"
FROM DUMMY;
SELECT YEAR (TO_DATE ('2011-05-30', 'YYYY-MM-DD')) "year"
FROM DUMMY;
SELECT MONTH ('2011-05-30') "month" FROM DUMMY;
SELECT NOW () "now" FROM DUMMY;
SELECT LAST_DAY (TO_DATE('2010-01-04', 'YYYY-MM-DD')) "last day"
FROM DUMMY;
SELECT DAYOFYEAR ('2021-05-30') "dayofyear"
FROM DUMMY;
'SAP > HANA Studio(CDS View,Query)' 카테고리의 다른 글
[PP] AMDP BAdI 구현 (0) | 2022.11.22 |
---|---|
SQL Statements (0) | 2022.07.01 |
CDS View가 저장되는 테이블 (0) | 2022.06.29 |