Home » SQL & PL/SQL » SQL & PL/SQL » Using substr on LONG data type in PL/SQL
Using substr on LONG data type in PL/SQL [message #132328] |
Thu, 11 August 2005 22:44  |
taxali
Messages: 5 Registered: March 2004
|
Junior Member |
|
|
Can someone tell me - why is it that I can use the substr on a LONG type column in PL/SQL but not in plain SQL??
For example, on asktom.com, the following code is listed that works OK:
create or replace
1 function getlong1( p_rowid in rowid)
2 return varchar2
3 as
4 l_data long;
5 begin
6 select remarks into l_data from cr_claimheader where rowid = p_rowid;
7 return substr( l_data, 1, 4000 );
8 end;
Line 7 uses substr on a LONG column without any problems!
|
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 07:19:41 CDT 2025
|