close
DATA: C1(10) VALUE 'Sum',
C2(3) VALUE 'mer',
C3(5) VALUE 'holi ',
C4(10) VALUE 'day',
C5(30),
SEP(3) VALUE ' - '.
CONCATENATE C1 C2 C3 C4 INTO C5.
WRITE C5.
CONCATENATE C1 C2 C3 C4 INTO C5 SEPARATED BY SEP.
WRITE / C5.
CONCATENATE 'Sum' 'mer' C3 C4 INTO C5 .
WRITE / C5.
如果是要組一段有Where 條件 的SQL 語法如
select * from PROJECT_FACT where YYYYMM='201803'
SQL conditions會遇到單引號的問題
可改用`
DATA: C6(6) VALUE '201803'.
CONCATENATE `select * from PROJECT_FACT where YYYYMM='` C6 `'` INTO C5.
WRITE / C5.
文章標籤
全站熱搜
留言列表