ThatRickGuy
Programmer
Hi guys,
I'm trying to find a way to get a SQL statement to return a description of a table. This is coming through ADO.Net, so just using DESC <tablename> isn't going to work.
I've tried:
and
But both are returning 0 rows. With the user_tab_columns query, even if I take off the where clause I still get no rows returned. Could this be a permissions issue? Or am I barking up the wrong tree?
Thanks!
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
I believe in killer coding ninja monkeys.
I'm trying to find a way to get a SQL statement to return a description of a table. This is coming through ADO.Net, so just using DESC <tablename> isn't going to work.
I've tried:
Code:
select dbms_metadata.get_ddl( 'TABLE', 'ANSWER', 'HTSCME' ) from dual;
Code:
select column_name,data_type from user_tab_columns where table_name = 'HTSCME.ANSWER';
But both are returning 0 rows. With the user_tab_columns query, even if I take off the where clause I still get no rows returned. Could this be a permissions issue? Or am I barking up the wrong tree?
Thanks!
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
I believe in killer coding ninja monkeys.