Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: dbms_sql question
Hello!
> I don't know how many columns are being selected, nor what these
> columns are, so is there a way to get this information?
In my opinion there're two ways to decide this problem. First is you should take a grammatical parse of SQL statement. Or second is you should give to PL/SQL all necessary information in any structure , for ex. in PL/SQL table.
(pSQL in varchar2,whatFields in FieldTable) is
in whatFields you should define columns and their type
Somehow or other on current level of skill I see no other ways to determine count and type of columns in any cursor by PL/SQL code.
Good luck! Received on Mon Jan 29 2001 - 07:06:29 CST
![]() |
![]() |