plsql - "DESC TABLE_NAME" command in Oracle is not working with pl/sql block -


i using oracle 11g r2 , have been trying execute below given pl/sql procedure :-

set serveroutput on declare tablename varchar2(100) := 'table_name'; begin desc tablename;   end; / 

or

    set serveroutput on     declare     tablename varchar2(100) := 'table_name';     begin     execute immediate 'desc tablename';       end;     / 

i tried continuously getting error. please me. thank much

if have read access user_tab_columns view, return same. verified now.

          select            column_name "name",            nullable "null?",           concat(concat(concat(data_type,'('),data_length),')') "type"           user_tab_columns           table_name='table_name' 

source: http://ss64.com/ora/desc.html


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -