.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson

Home >> Code Snippets >> SQL Query >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

SQL * Plus file commands - Oracle

Posted By:Deepika Haridas       Posted Date: October 27, 2010    Points: 15    Category: SQL Query    URL: http://www.dotnetspark.com  

This code shows how to use File commands in SQL * Plus Oracle

SQL * Plus file commands - Oracle

1. SAVE filename
2. GET filename
3. START filename
4. @ filename
5. EDIT filename
6. SPOOL filename

SQL> L1. Select lastname, manager_id, dept_no2* from emp;
SQL > SAVE my_queryFile created my_query
SQL > START my_querylastname          
manager_id      dept_id-----------------------------------------King                                                   1Kochaar                         80                1..........10 rows updated


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend