- 最后登录
- 2014-3-27
- 在线时间
- 21 小时
- 威望
- 0
- 金钱
- 123
- 注册时间
- 2013-5-9
- 阅读权限
- 10
- 帖子
- 36
- 精华
- 0
- 积分
- 0
- UID
- 1082
|
5#
发表于 2013-10-5 20:18:39
11.2.0.3貌似没这个问题哦。- [oracle@rac1 ~]$ export NLS_LANG="SIMPLIFIED CHINESE_CHINA".ZHS16GBK
- [oracle@rac1 ~]$ sqlplus / as sysdba
- SQL*Plus: Release 11.2.0.3.0 Production on чǚ¹ 10Ղ 5 20:14:29 2013
- Copyright (c) 1982, 2011, Oracle. All rights reserved.
- Connected to:
- Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
- With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
- Data Mining and Real Application Testing options
- SQL> variable n number
- SQL> exec :n := 7521
- PL/SQL procedure successfully completed.
- SQL> print :n
- N
- ----------
- 7521
- SQL> select * from scott.emp where empno = :n;
- EMPNO ENAME JOB MGR
- ---------- -------------------- ------------------ ----------
- HIREDATE SAL COMM DEPTNO
- ------------------- ---------- ---------- ----------
- 7521 WARD SALESMAN 7698
- 1981:02:22 00:00:00 1250 500 30
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
- With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
- Data Mining and Real Application Testing options
- [oracle@rac1 ~]$ unset NLS_LANG
复制代码 |
|