Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

external table extract date from filename

wucisSep 26 2024 — edited Sep 26 2024

The filenames look like YYYYMMDD_filename.csv

A file contains 2 fields separated with ;

Is there a way to extract the date from the filename and write this date into a third column of the resulting external table.

BTW the second field in the files are integers. At the moment I import them as VARCHAR2 respectively char. What would be more convenient that they would be imported into a NUMBER column ?

I'm using oracle db 21c xe

This post has been answered by Solomon Yakobson on Sep 26 2024
Jump to Answer
Comments
Post Details
Added on Sep 26 2024
6 comments
107 views