这句话是什么意思啊 求解

bird_cat 2013-06-09 05:37:45
求解:
The size for strings has two factors: the number of units allotted and the type of units allotted.
A string of three characters (derived from the character set) cannot fit in a string of three bytes,
and more naturally a string of three characters cannot fit in a string of two characters. Any attempt
to make that type of assignment raises an ORA-06502, which means a character string buffer is
too small to hold a value

我根据以上内容做了个实验

DECLARE
SUBTYPE code IS VARCHAR2(3 byte);
c VARCHAR2(3 CHAR) := 'ABC';
d CODE;
BEGIN
d := c;
END;
/
没有报错,按照上面的说法应该报ORA-06502的
...全文
88 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

17,086

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧