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?

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top