如何使用JDBC从Oracle 11g获取注释? [英] How to fetch Comments from a Oracle 11g using JDBC?
本文介绍了如何使用JDBC从Oracle 11g获取注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以使用Java代码从Oracle获取注释?我尝试使用使用描述",但不适用于JDBC(Java代码).你能提出一些建议吗?
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?
推荐答案
您可以运行此查询以获取表的注释.
You can running this query to get table's comment.
select comments from user_tab_comments where table_name = 'T';
如果要获取列的评论:
select comments from user_col_comments where table_name = 'T';
这篇关于如何使用JDBC从Oracle 11g获取注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文