Question

I have a table test with lots of records. I want to export only September's records according to a date column?

Is it possible?

Was it helpful?

Solution

yes i am talking about dump file.

To export(create a dump file) particular set of rows from a table(s), the export command might look like this:

C:\>exp userid=user_name/pass[@service_name] 
        file=c:\exp.dmp                    -- complete path to a new dump file 
        tables=(test_table)                -- table name 
        query=\"where extract(month from date_column) = 9\"  -- filter
        log=c:\exp.log                     -- optional log file 

Here we are not taking year into consideration. if year is important to you, simply change the where clause.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top