很可能是没存进去!下面是我的总结:
SQL>comment on table 表 is '表注释'; SQL>comment on table 视图 is '视图注释'; //注意,为视图创建注释! SQL>comment on column 表.列 is '列注释'; SQL> select * from user_tab_comments where comments is not null; SQL> select * from user_col_comments where comments is not null;下面是实例:------------------------------------------------SQL> create table 表(列 number);表已创建。
SQL> comment on table 表 is '表注释';注释已创建。SQL> comment on column 表.列 is '列注释';注释已创建。SQL> select * from user_tab_comments where comments is not null;TABLE_NAME TABLE_TYPE
------------------------------ -----------
COMMENTS
--------------------------------------------------------------------------------
表 TABLE
表注释SQL> create view 视图 as select * from 表;视图已建立。SQL> comment on table 视图 is '视图注释';注释已创建。SQL> select * from user_tab_comments where comments is not null;TABLE_NAME TABLE_TYPE //注意这边的table_type!!!!
------------------------------ -----------
COMMENTS
--------------------------------------------------------------------------------
表 TABLE
表注释视图 VIEW
视图注释
SQL>comment on table 表 is '表注释'; SQL>comment on table 视图 is '视图注释'; //注意,为视图创建注释! SQL>comment on column 表.列 is '列注释'; SQL> select * from user_tab_comments where comments is not null; SQL> select * from user_col_comments where comments is not null;下面是实例:------------------------------------------------SQL> create table 表(列 number);表已创建。
SQL> comment on table 表 is '表注释';注释已创建。SQL> comment on column 表.列 is '列注释';注释已创建。SQL> select * from user_tab_comments where comments is not null;TABLE_NAME TABLE_TYPE
------------------------------ -----------
COMMENTS
--------------------------------------------------------------------------------
表 TABLE
表注释SQL> create view 视图 as select * from 表;视图已建立。SQL> comment on table 视图 is '视图注释';注释已创建。SQL> select * from user_tab_comments where comments is not null;TABLE_NAME TABLE_TYPE //注意这边的table_type!!!!
------------------------------ -----------
COMMENTS
--------------------------------------------------------------------------------
表 TABLE
表注释视图 VIEW
视图注释
解决方案 »
- 如何通过jsp前台向oracle一次存入多条记录
- 关于动态sql.... 看到的大虾帮帮忙 谢谢
- 请问这样的语句查询出来为什么很慢,有没有优化的方案
- Oracle.DataAccess.Client.OracleException ORA-06550: 第 1 行, 第 7 列: PLS-00103: 出现符号 "{"在需要下列之一时: 错误是什么原因?
- oracle 简单问题 送分了 --------
- 我在redhat ES4上安装了 oracle10g 在本机上可以正常使用。从别的及其访问,出现ORA-12560错误
- sql触发器转oracle触发器!100分向送
- 解释这句sql意思(简单)
- 求oracle在linux测试下的无故障运行时间?
- 那里有PL/SQL Developer的教程下载啊?
- 懂数据库集群的看过来!
- 关于blob的问题大家指点
select count(*) from user_col_comments where comments is not null;
COUNT(*)
----------
0
select count(*) from user_col_comments where comments is null
COUNT(*)
----------
2087
select count(*) from user_tab_comments where comments is null
COUNT(*)
----------
243
select count(*) from user_tab_comments where comments is not null
COUNT(*)
----------
0这两个均为系统表,pb中你所连接的肯定是这两个表吗?