인포믹스의 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. ..
인포믹스 replace 는 비교적 간단하다 replace(mdy(month(today),1,year(today)) -1 unit month , '-','') 즉 결론은 replce(src,old 문자, 바꿀문자) 위와 같은 경우는 2016-12-01 을 20161201 로 바꾸는것이다. 아래와 같이 써도 될것이다. replace('2016-12-01,'-','') REPLACE Function |--REPLACE--(--source_string--,--old_string--+---------------+--)--| '-,--new_string-'
c언어 오른쪽 끝에 있는 공백을 삭제하는 함수이다. 사용법은 그냥 mys_rtrim(변수명); void mys_rtrim(char *str){ char *pt; int i; for(istrlen(str)-1;i>=0;i--){ if(str[i]==0x20) str[i]=0x00; else break; } } 예를들어 인포믹스 ec 환경인 경우 $char monthago[100]; memset(monthago,0x00,sizeof(monthago)); $select mdy(month(today,1,year(today)) -1 units month into :monthago from ppcommon:st203; if(SQLCODE){ printf("error\n"); } printf("monthago=[%s..
- Total
- Today
- Yesterday
- EC
- 프로씨
- proc
- 포인터
- XE3
- 오라클
- 이클립스
- webix
- ocajp
- xe addon
- 파싱
- 라이믹스
- Python
- 스크래핑
- 자바 smtp
- xe애드온
- esql
- XE
- ocjap
- 자바
- 문자열
- 인포믹스
- C언어
- 플러터
- php
- KG
- C
- 파이썬
- MySQL
- JDBC
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
