Quantcast
Viewing all articles
Browse latest Browse all 16689

Execute SQL script - issues with using both variable substitution and argument

Hi,

I'm trying to run an update statement in execute sql script:

update ${v_table_name}
set url = regexp_replace(url ,'${regex}', E'$1$2XNAME', 'ig')
where (id between ? and ?)
and id <= ?;

I have both variable substitution and argument replacement in the same query. The problem is:

the argument is coming from a get rows from result from a previous transformation's copy rows to result. For the argument to work I've to check Execute for each row check box, but if I do that, the variable substitution doesn't work and viceversa. Not sure how to handle this.

Any help appreciated.

Thanks,
Manasa

Viewing all articles
Browse latest Browse all 16689

Trending Articles