Quantcast
Channel: Toad for Oracle
Viewing all articles
Browse latest Browse all 4009

Forum Post: substitution variables - SQL in TOAD

$
0
0
I have a big SQL query with 3 substitution variables, a manager name. Is there a way to fix the query, so I don't have to pass the SAME user_mgr name "Chris Howard" 3 times? Query something like this... select ...... where I.USER_TYPE = 'Employee' AND USER_MGR ='&USER_MGR') UNION ALL where i.USER_TYPE = 'Employee' AND USER_MGR ='&USER_MGR' UNION ALL select .... whreer i.USER_TYPE = 'Employee' AND USER_MGR ='&USER_MGR')

Viewing all articles
Browse latest Browse all 4009

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>