Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Problem while Spooling Query Output

$
0
0
Hi,

I am trying to run a query to extract data from a linked access datatable through toad.

The table that the query needs to sift through has over 12 Lakh rows and 70 columns. I am running a simple select query and sql gives me an error saying out of memory.
So, I spooled the results into a CSV file. While the query seems to be running fine(I broke it in between to check how its working), the results it gives me are in a weird format.

Suppose there are 10 columns 1-10 and 20 rows in my result set, so my CSV file would display

1
2
5
6
7
8
9
10
3
4

for every row,i.e., it is showing the values for each result row one below the other(in different rows) and is appending all the rows below each other so for the current example, it would give me a dataset with one column, and 10*20 rows.

Also, it skips three columns from the result rows and then adds them in the end of the row instead, ie. changes the order of the columns.


Kindly help me exctract the data in a more sensible form.

Thanks :)

Viewing all articles
Browse latest Browse all 13329

Trending Articles