• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Another One For You Budding Oracle Guru's

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    just my 2p worth...

    if you used a quality tool like sqlplus then you can just use the prompt keyword. so you just go:

    spool my_file.txt
    prompt this is my header
    select * from dual --or whatever your query is
    /
    prompt this is my footer
    spool off

    just remember that union will implicitly group and order whereas union all will not. if you post something like this at forums.oracle.com in the sql / pl/sql forum you will get loads of responses from loads of know it alls... oh, and the difference will be that it will work, unlike alot of the guff above (although it did work in the end)!

    Comment

    Working...
    X