retreive the sql queries

I am using Oracle database management system to write SQL queries.
So far, I have written around 200 queries in SQL command line editor to perform a variety of tasks.
Now I want to save those queries in a text file so that the same could be used by students for practice.
Is there any way to retrieve all the queries that I have written on the command line?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Vishal Sharma

    @vishal-pysGmK • Aug 27, 2015

    proffyI am using Oracle database management system to write SQL queries.
    So far, I have written around 200 queries in SQL command line editor to perform a variety of tasks.
    Now I want to save those queries in a text file so that the same could be used by students for practice.
    Is there any way to retrieve all the queries that I have written on the command line?

    #-Link-Snipped-#

    See if this helps you. Don't have time to actually test that, but I'd love to know if that worked.