--版本 10g
--第 1 行出现错误:
--ORA-06502: PL/SQL: 数字或值错误 : 字符串缓冲区太小
--ORA-06512: 在 line 4declare
maxcode autoid.zyzbh%type;
begin
select max(ZYZBH) s into maxcode from AUTOID ;end;这没做什么,怎么都报错啊
--第 1 行出现错误:
--ORA-06502: PL/SQL: 数字或值错误 : 字符串缓冲区太小
--ORA-06512: 在 line 4declare
maxcode autoid.zyzbh%type;
begin
select max(ZYZBH) s into maxcode from AUTOID ;end;这没做什么,怎么都报错啊
解决方案 »
- Oracle10g部署到WindowServer2008 R2 64bit标准版上,跪求具备可行性的安装手册
- 这句简单的sql语句哪里错了?判断字符串里有没有问号‘?’
- 怎样清理ORACLE中没用的数据 来释放硬盘空间?
- 请教高手一个sql难题!!!!!!!
- SQL跨用户查询?
- 如何在function中传递not in 参数
- 一个存储过程的问题!
- 文字字符串过长
- oracle中的not in执行非常慢
- 帮忙解决9i中的问题,谢谢!ORA-09275 CONNECT INTERNAL is not a valid DBA connection
- ★☆★☆★求实现该功能一条sql语句★☆★☆
- rowid的问题,为什么同一句sql在不同的数据库结果不一样?
maxcode varchar2(1000);
begin
select max(ZYZBH) into maxcode from AUTOID ;
dbms_output.putline( maxcode );
//看看内容是什么?
end;
s test1.cid%type;
begin
select max(cid) into s from test1;
dbms_output.put_line( 'max cid is:'||s );
end;
输出结果:
max cid is:123456789012345
我这里还是有这个错误