plsql配置 orcale基本语法 中文乱码
2011-09-19 19:34
267 查看
安装plsql之前要安装oracle客户端
Net Configuration Assistant配置
------------------------------------------------------------------------
select * from all_tab_comments
-- 查询所有用户的表,视图等
select * from user_tab_comments
-- 查询本用户的表,视图等
select * from all_col_comments
--查询所有用户的表的列名和注释.
select * from user_col_comments
-- 查询本用户的表的列名和注释
select * from all_tab_columns
--查询所有用户的表的列名等信息(详细但是没有备注).
select * from user_tab_columns
--查询本用户的表的列名等信息(详细但是没有备注).
--一般使用1:
select t.table_name,t.comments from user_tab_comments t
--一般使用2:
select r1, r2, r3, r5
from (select a.table_name r1, a.column_name r2, a.comments r3
from user_col_comments a),
(select t.table_name r4, t.comments r5 from user_tab_comments t)
where r4 = r1
以上就是oracle查询用户所有表的语句介绍。
------------------------------------------------------------------------
中文乱码
新增环境变量
我的电脑--属性--环境变量
用户环境变量
新建
变量:NLS_LANG
值:SIMPLIFIED CHINESE_CHINA.ZHS16GBK
Net Configuration Assistant配置
------------------------------------------------------------------------
select * from all_tab_comments
-- 查询所有用户的表,视图等
select * from user_tab_comments
-- 查询本用户的表,视图等
select * from all_col_comments
--查询所有用户的表的列名和注释.
select * from user_col_comments
-- 查询本用户的表的列名和注释
select * from all_tab_columns
--查询所有用户的表的列名等信息(详细但是没有备注).
select * from user_tab_columns
--查询本用户的表的列名等信息(详细但是没有备注).
--一般使用1:
select t.table_name,t.comments from user_tab_comments t
--一般使用2:
select r1, r2, r3, r5
from (select a.table_name r1, a.column_name r2, a.comments r3
from user_col_comments a),
(select t.table_name r4, t.comments r5 from user_tab_comments t)
where r4 = r1
以上就是oracle查询用户所有表的语句介绍。
------------------------------------------------------------------------
中文乱码
新增环境变量
我的电脑--属性--环境变量
用户环境变量
新建
变量:NLS_LANG
值:SIMPLIFIED CHINESE_CHINA.ZHS16GBK
相关文章推荐
- plsql配置 orcale基本语法 中文乱码
- Code::Blocks基本环境配置,中文乱码,新建工程等系列解决方案
- 俺的gVim配置文件(解决了菜单栏,右键菜单和提示框中文乱码问题)(for windows,linux下应该也没问题)
- Python 3下使用Matplotlib工具画图,中文显示乱码的问题解决(修改配置文件)
- PLSQL不安装客户端连接远程oracle数据库的方法及中文乱码问题的解决
- PLSQL中文乱码问题(转载)
- tomcat的环境配置及解决中文乱码
- java.util.Properties读取中文内容的配置文件,发生中文乱码的现象有解决方案
- plsql中文乱码,显示问号
- eclipse下properties配置文件中文乱码解决
- Orcale 数据库客户端PL/SQL 中文乱码的问题解决方法
- ORACLE PLSQL中文乱码解决,请留意细节
- win7 plsql里查询出来的中文信息,复制粘贴的时候出现乱码的解决方案
- PHP安装配置,基本语法
- java读取配置中文乱码
- Tomcat 数据源配置,中文路径乱码解决
- PLSQL基本语法介绍
- tomcat服务器配置字符集为utf-8-彻底解决中文乱码问题
- Apache mod_rewrite的中文配置、使用和语法介绍
- Java读取properties配置文件时,中文乱码解决方法