Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: column name as a part of the result set
Billy Verreynne wrote:
> Daniel Morgan <damorgan_at_x.washington.edu> wrote
>
>>Can not be done without hard coding.
Not according to tahiti.oracle.com though I will gladly stand corrected.
SQL> begin
2 execute immediate 'DESCRIBE dual';
3 end;
4 /
begin
*
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-06512: at line 2
If you can write the code you know the columns. If using NDS you could always go to all_tab_columns too.
-- Daniel Morgan http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Tue Feb 17 2004 - 10:27:08 CST