我有这个PL-Sql代码不能正常工作。 但是,据我所知,应该工作。 数据库是Oracle 11g。
DECLARE
l_rowid_in ROWID;
l_rowid_type NUMBER;
l_object_number NUMBER;
l_relative_fno NUMBER;
l_block_number NUMBER;
l_row_number NUMBER;
BEGIN
SELECT ROWID INTO l_rowid_in FROM TABLENAME a
WHERE RECORD_ID_CALL_STR_ID = 'dummystring'
AND ROWNUM < 2;
dbms_rowid.rowid_info(rowid_in =>l_rowid_in ,
rowid_type =>l_rowid_type ,
object_number =>l_object_number,
relative_fno =>l_relative_fno ,
block_number =>l_block_number ,
row_number =>l_row_number );
dbms_output.put_line('object_number ='||l_object_number);
END;
/
当我使用脚本运行此脚本时,它会给我错误
Error at line 1
ORA-06502: PL/SQL: numeric or value error
ORA-06512: a line 11
任何人都可以帮助我吗?这是一种奇怪的行为,谢谢。