问题
Is there a way we can fetch comments form Oracle using Java Code?I tried Using Describe but it did not work for JDBC(Java Code). Can u suggest some way?
回答1:
You can running this query to get table's comment.
select comments from user_tab_comments where table_name = 'T';
If you want to get column's comment:
select comments from user_col_comments where table_name = 'T';
回答2:
the java code would be similar what you would be using with any normal query i.e by establishing a connection and then executing the query and using the above 2 statements provided by Iswanto
来源:https://stackoverflow.com/questions/19557564/how-to-fetch-comments-from-a-oracle-11g-using-jdbc