Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: select on LONG!
Yes, it is possible to select long in SQL*Plus.
See the following query (columns text of dba_views is LONG):
set long 10000
select text from dba_views where view_name='ALL_ARGUMENTS';
TEXT
a.argument, /* ARGUMENT_NAME */ a.position, /* POSITION */ a.sequence#, /* SEQUENCE */ a.level#, /* DATA_LEVEL */
0, null, 1, 'VARCHAR2', 2, decode(a.scale, null, decode(a.precision, null, 'NUMBER', 'FLOAT'),'NUMBER'), 3, 'NATIVE INTEGER',
12, 'DATE', 23, 'RAW', 24, 'LONG RAW', 29, 'BINARY_INTEGER', 69, 'ROWID', 96,'CHAR', 102, 'REF CURSOR', 105, 'MLSLABEL', 106, 'MLSLABEL', 250, 'PL/SQL RECORD',
1 row selected.
Doktor a écrit dans le message <37CCE057.DEAB960A_at_post.pl>...
>It's impossibile to select LONG datatype in SQL*Plus. If you selecting
>LONG column into variable, remember, that you can use only 32K of data
>for variables.
>
>Michel Cadot wrote:
>>
>> I think you make the query with SQL*Plus, so try:
>> Set LONG 10000
>> and you will get the entire text.
>> The defaut for LONG parameter is 80 characters
>> that is you get only the first 80 characters of LONG field.
>>
>> Nandakumar a écrit dans le message <7qhmgq$dmn$1_at_nnrp1.deja.com>...
>> >When i do a select on a field of LONG datatype, only a part of its value
>> >is selected or displayed. Can someone say how to get the full value
>> >displayed?
>> >
>> >For instance, users_triggers table has a LONG field called TRIGGER_BODY.
>> >when i select this field for one of my triggers, an incomplete
>> >definition appears as shown here.
>> >--
>> >BEGIN
>> >update nanda.agent set user_number = (select user_number from www.users
>> >w
Received on Wed Sep 01 1999 - 04:37:41 CDT
![]() |
![]() |