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.

read-a-excel-xlsx-with-plsql Next Step

Angus123Feb 11 2021 — edited Feb 11 2021

Hi
I am looking at Anton Scheffer procedure to query an excel file

select * from table( as_read_xlsx.read( as_read_xlsx.file2blob( 'DOC', 'Book1.xlsx' ) ) );

Once I get the results, how do I get these into a table
For example
select row_nr, col_nr, string_val, number_val, date_val from table( as_read_xlsx.read( as_read_xlsx.file2blob( 'DOC', 'angus_test.xlsx' ) ) )
where row_nr > 1
and sheet_nr = 2
order by row_nr, col_nr;
Returns
image.png

My table is
CREATE TABLE XXX_DDD
( PERSON_NAME VARCHAR2(1000 CHAR),
 EMP_NO    NUMBER,
 DOB     DATE,
 SAL     NUMBER,
 COMM     NUMBER)
Regards
Gus

This post has been answered by BluShadow on Feb 11 2021
Jump to Answer
Comments
Post Details
Added on Feb 11 2021
9 comments
3,328 views