문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top