Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Using Oracle SQL Developer, I do:

spool c:\temp\file1.csv
select /*csv*/ id, version, key, pattern, name from mydatabase.edition;

spool c:\temp\file2.csv
select /* csv */ id, version, amount, item FROM mydatabase.mtci;

In the first statment the export is like this

"string1", 98, "key1", "pattern", "name"

In the next statement it is like thhis

string2,       104,         988.99,         yuikk

i.e. it has no quotes and has tabs after the commas.

Anyone know why this is the case?

Note: I am using Oracle 11.

share|improve this question
    
+1 for the neat SQLdeveloper functionality –  kubanczyk Jan 24 at 17:33

1 Answer 1

The problem was in on case I was doing

/*csv*/ -- this works

/* csv */ -- this does not work.

Thanks

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.