You can always add output from your SQL script to a file using >>
For example (for Sybase):
isql < script.sql >> outputfile.out
I canβt tell you that the equivalent is for MySQL, but the principle should be the same.
Of course, the output will go to a single file, so if your SQL script outputs various SQL samples to different output files, you need to split the script up.
John pickup
source share