Oracle 10g 字段长度的问题!
偶用的是Oracle 10.1 G,遇到以下问题,调试了很久,就是调不成功,请求网友帮忙!
SQL> CREATE TABLE person (
2 pid VARCHAR2(18),
3 name VARCHAR2(200),
4 age NUMBER(3),
5 birthday DATE,
6 sex VARCHAR2(2) DEFAULT '男'
7 );
sex VARCHAR2(2) DEFAULT '男'
*
第 6 行出现错误:
ORA-01401: 插入的值对于列过大
SQL> CREATE TABLE person (
2 pid VARCHAR2(18),
3 name VARCHAR2(200),
4 age NUMBER(3),
5 birthday DATE,
6 sex VARCHAR2(2) DEFAULT '男'
7 );
表已创建。
没错啊,是不是你多加了空格哦,成了这样' 男'
The VARCHAR2 and CHAR types support two methods of specifying lengths:
• In bytes: VARCHAR2(10 byte). This will support up to 10 bytes of data, which could be as few as two characters in a multibyte character set.
• In characters: VARCHAR2(10 char). This will support to up 10 characters of data, which could be as much as 40 bytes of information.
ORA-01401: inserted value too
相关问答:
环境:1.win2003server+oracle9i
2.oracle9i字符集为AMERICAN_AMERICA.WE8ISO8859P1
3.oracle sql developer版本 1.5.5
现象描述: 1.在sql developer 中查询oracle中的某个表,中文全部显示为乱码。
......
with adod_dict do
begin
close;
commandtext:='select bgqxcode,count(*) wjsl from wscl_wsda_file where wjnd=:tnd group by bgqxcode'; ......
本人系统WIN7
听说 可以装Oracle10.2.1 和11
不能装Oracle9i
求个下载速度快点的Oracle10.2.1和11 的链接
谢谢了 (直接要连接)
sf 不留 呵呵
我有10.2的安装程序,要的话给你发过去
......
我能否指定oracle中某张表user1.table1 只能由用户user1才能查询?
或者,能否指定user1.table1就是不能被用户user2查询?
权限控制,不给其他别的用户权限就可以了
grant,revoke进行权限限制
grant授权
......