A bit of a cryptic subject perhaps, but this is my question:
I have an SQL script which uses THREE variables to generate a CSV output row. FromUserID, ToUserId and ToName.
Currently the user is prompted for these. However, more common than not the user needs to run the same thing for different values (sometimes FromUserID will be the same).
My plan is for the user (technical staff) to create a text file with the variables, eg:
bloggsj,smithj,John Smith
bloggsj,collinsp,Pauline Collins
drewt,mousem,Mickey Mouse
Can SQLPlus read a text file as well as writing it (spool) ?
I thought of using a VB script to read the file but my understanding is that with 9i the spool will not append, only overwrite the file.
Does any one have any super suggestions?
Thanks
There's no need for sarcastic replies, we've not all been this sad for that long!
I have an SQL script which uses THREE variables to generate a CSV output row. FromUserID, ToUserId and ToName.
Currently the user is prompted for these. However, more common than not the user needs to run the same thing for different values (sometimes FromUserID will be the same).
My plan is for the user (technical staff) to create a text file with the variables, eg:
bloggsj,smithj,John Smith
bloggsj,collinsp,Pauline Collins
drewt,mousem,Mickey Mouse
Can SQLPlus read a text file as well as writing it (spool) ?
I thought of using a VB script to read the file but my understanding is that with 9i the spool will not append, only overwrite the file.
Does any one have any super suggestions?
Thanks
There's no need for sarcastic replies, we've not all been this sad for that long!