Guest_imported
New member
- Jan 1, 1970
- 0
Can I use regular programming commands such as "if then" statements in sql scripts within UNIX?
Here is some psuedo code to what I need to do:
SCRIPT>
If tablename.businessunit = '1'
execute "procedure1"
If tablename.businessunit = '2'
execute "procedure2"
"procedure1" is a script that selects certain fields and writes to a flat file
Here is some psuedo code to what I need to do:
SCRIPT>
If tablename.businessunit = '1'
execute "procedure1"
If tablename.businessunit = '2'
execute "procedure2"
"procedure1" is a script that selects certain fields and writes to a flat file