Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing variable to Oracle statement in DTS

Status
Not open for further replies.

heidi88

Programmer
May 1, 2003
32
0
0
US
I have a Oracle statement like this and works in DTS:

Select f1
From t1
Where f2=123

However, I need to replace 123 with variable v_f3. I try to declare the variable like this:

variable v_f3 number;
begin
SELECT f4
INTO :v_f3
FROM t2
WHERE ...;
end;


Select f1
From t1
Where f2=v_f3

The above statement won't work in SQL DTS data pump task. I am using ODBC driver for Oracle connection.

Thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top