Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: LONG column in Reports

Re: LONG column in Reports

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 16 Feb 2001 17:13:20 -0000
Message-ID: <982343370.28851.0.nnrp-08.9e984b29@news.demon.co.uk>

I think I posted a solution to this problem on Metalink a couple of weeks ago. You can write a stored function which takes the primary key as an input, selects the long for that key, and returns the first part of it as a varchar.

Not a great solution, but it gets the job done.

--
Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

Practical Oracle 8i:  Building Efficient Databases
Publishers:  Addison-Wesley

Reviews at: http://www.jlcomp.demon.co.uk/book_rev.html



Steve Bell wrote in message <3A8A8F57.2D6A6F80_at_sympatico.ca>...

>Hi all,
>
>I just listened to a voice message left to me by a coworker...he's
>working with Crystal Reports and is trying to show the first 100
>characters of an Oracle LONG column in his report....the helpdesk at
>Seagate (Crystal) told him to create a view containing the first 100
>characters using SUBSTR....however, this returns an error
>ORA-00932: Inconsistent datatypes
>
>I'm wondering if it's possible to break up a LONG field in this way or
>if another methodology is required.
>
Received on Fri Feb 16 2001 - 11:13:20 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US