| 
 | 
Hi All,
 
Is there a way I can clear out multiple tables from a set of SQL
statements without having to run each as it's own routine?
 
For example, I have:
 
     C* Clear all tables
     C/Exec SQL
     C+ DELETE FROM sswdpml where mplcd='1' or mplcd='2'
     C/End-exec
     C*
     C/Exec SQL
     C+ commit
     C/End-exec
     C*  
     C* Clear all tables
     C/Exec SQL
     C+ DELETE FROM sswdpcp where cplcd='1' or cplcd='2'
     C/End-exec
     C*
     C/Exec SQL
     C+ commit
     C/End-exec
     C*  
 
Can I do this instead:
 
     C* Clear all tables
     C/Exec SQL
     C+ DELETE FROM sswdpml where mplcd='1' or mplcd='2'
     C+ DELETE FROM sswdpcp where cplcd='1' or cplcd='2'
     C/End-exec
     C*
     C/Exec SQL
     C+ commit
     C/End-exec
     C*  
 
Thanks,
 
Brian.
 
-=-=-=-=-=-=-=-=-=-=-=-=-=-
Brian Piotrowski
Specialist - I.T.
Simcoe Parts Service, Inc.
Ph: 705-435-7814 x343
Fx: 705-435-6746
bpiotrowski@xxxxxxxxxxxxxxx
-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.