- 论坛徽章:
- 0
|
5可用积分
1、RT,如下建表语句如在sqlplus中执行或存成xxx.sql文件 sqlplus user/passwd @xxx.sql执行,然后用PL/SQL查看字段注释为???,但同样的语句在PL/SQL里建表却可以看到中文注释,说明NLS_LANG应该没有问题。
2、在应用中建表时给某个字段加了中文注释,PL/SQL查看正常,exp导出.dmp文件然后imp恢复到别一个DB服务器上用PL/SQL看注释也变成???了
请各位老大指点一下哪里的原因,3Q
顺便问一下在sqlplus里怎么看表和字段的注释,偶现在只会用PL/SQL看
create table RT_STATUS
(
S_TIME NUMBER default 0,
C_TIME NUMBER default 0,
STATUS VARCHAR2(1)
)
tablespace USERS
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 128K
minextents 1
maxextents unlimited
);
comment on table RT_STATUS
is '状态信息表';
comment on column RT_STATUS.S_TIME
is '启动时间';
comment on column RT_STATUS.C_TIME
is '关闭时间';
comment on column RT_STATUS.STATUS
is '状态(''S''启动中,''C''关闭,''M''运行中)'; |
|
最佳答案
查看完整内容
通过dba_col_comments视图查看。
|