Hi,
I have been using the db2 export function for quite sometimes.
Everytime I want to use it I have to remove every carriage return from
my SQL statement and have it all on one line as shown in the following
simplistic example:
db2 export to myfile.txt of del select a,b,c from staff
This can be time consuming when you have big SQL joining many tables
that contains several where clauses.
Is it possible to somehow pass a SQL with carriage returns? Have the
SQL store in a text file for example like so
SELECT A,
B,
C
FROM STAFF
Let me know.....
THANKS
Comment