티스토리 뷰
인포믹스의 substring은 다른 언어에 비해서 다소 복잡하다.
SUBSTRING Function |--SUBSTRING--(--source_string--FROM--start_position--+-------------+--)--| '-FOR--length-'
substring(source from 시작인덱스 for 길이)
여기서 start position 은 1부터 시작한다.
예제를 보며 익혀보자
substring(20161201 from 1 for 6)
하면 결과는
201612
가 된다.
SELECT SUBSTRING('ABCDEFG' FROM 3 FOR 2) FROM mytable;
The following table shows the output of this SELECT statement.
(constant)CD
SUBSTRING Function |--SUBSTRING--(--source_string--FROM--start_position--+-------------+--)--| '-FOR--length-'
substring(source from 시작인덱스 for 길이)
여기서 start position 은 1부터 시작한다.
예제를 보며 익혀보자
substring(20161201 from 1 for 6)
하면 결과는
201612
가 된다.
SELECT SUBSTRING('ABCDEFG' FROM 3 FOR 2) FROM mytable;
The following table shows the output of this SELECT statement.
(constant)CD
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 라이믹스
- C언어
- Python
- 라이믹스 입력폼
- 이클립스
- XE3
- KG
- XE
- xe addon
- webix
- php
- 파싱
- JDBC
- 포인터
- ocjap
- 자바 smtp
- 플러터
- 인포믹스
- EC
- 문자열
- 파이썬
- 자바
- esql
- 오라클
- proc
- ocajp
- 프로씨
- C
- xe애드온
- 스크래핑
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
글 보관함
