1. 動態(tài)的select 語句
- 如果是在動態(tài)的參數(shù)是Query類型且有字符串,直接將動態(tài)的參數(shù)寫成
@{activity(xxx)},需要使用大括號
image.png
select ID,Name
from data_src
where LastModifytime > '@{activity('look up old water mark').output.firstRow.WaterMarkvalues}'
and
LastModifytime <= '@{activity('lookup newWaterMark').output.firstRow.newWaterMarkValue}'
注意:1.如果原始的sql里的查詢就是需要加引號,那么@{}外面也需要加引號;
