Forum Discussion
Anushka96
2 years agoFrequent Visitor
How to insert dynamic content in a query
I'm trying to dynamicaly create plsql query in copy data node. But I can't use set varaible in that dynamic query as per the suggested method in auto completion. Following statement is my sql stateme...
- 2 years ago
- You can use the following dynamic content to build the query. Enclose the parameter within
@{...}(string interpolation) wherever required:
SELECT *FROM (SELECT a.*, CAST(ROWNUM AS INTEGER) AS rnumFROM (SELECT * FROM DBO.TestData) aWHERE ROWNUM <= 2000)WHERE rnum >= @{variables('LastRow')}
- You can use the following dynamic content to build the query. Enclose the parameter within
NandanHegde
Super User
2 years ago- You can use the following dynamic content to build the query. Enclose the parameter within
@{...}(string interpolation) wherever required:
SELECT *FROM (SELECT a.*, CAST(ROWNUM AS INTEGER) AS rnumFROM (SELECT * FROM DBO.TestData) aWHERE ROWNUM <= 2000)WHERE rnum >= @{variables('LastRow')}