How to fetch Comments from a Oracle 11g using JDBC?

允我心安 提交于 2019-12-12 03:05:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!