Multipe Sql Commands
Moderators: chulett, rschirm, roy
Multipe Sql Commands
Hello All,
Can we run multiple SQL commands using single close command in Oracle stage.
i.e after the job gets completed one table should be truncated and one more table should gets updated.
Appreciate your help.
Thanks in advance
Karunakar
Can we run multiple SQL commands using single close command in Oracle stage.
i.e after the job gets completed one table should be truncated and one more table should gets updated.
Appreciate your help.
Thanks in advance
Karunakar
You can always call a stored procedure, which can execute more than one comand.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Thanks a lot for your reply.
If I understad correctly we cannot run more than one Sql statement using a single close command in the Oracle stage.
I was succeseed in running a single Sql query in close command but when I am including one more sql by seprating ; in between the job is getting aborted.
Yes we can use stored procedure that option is available but before that t Iam just trying to see whether we can run multiple commands one after one in a single close command.
Please let me know if my understanding is correct.
Thanks,
Karunakar
If I understad correctly we cannot run more than one Sql statement using a single close command in the Oracle stage.
I was succeseed in running a single Sql query in close command but when I am including one more sql by seprating ; in between the job is getting aborted.
Yes we can use stored procedure that option is available but before that t Iam just trying to see whether we can run multiple commands one after one in a single close command.
Please let me know if my understanding is correct.
Thanks,
Karunakar
nkreddy3 - that is correct.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 10
- Joined: Wed Feb 27, 2008 3:37 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Does the old "double semi-colon" trick (no, that's not the same as a colon) work" ?
Code: Select all
query1;;
query2;;
query3;
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Issue with anonymous block in sql
The only issue I see with using an anonymous block command is that you are now putting this into sequential mode correct ?
I do not know if that is your desired result.
If so, I know that it works well.
I do not know if that is your desired result.
If so, I know that it works well.