× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



One common technique to improve performance, and to avoid the error you're
getting, is to change
date(inEffDate) = a.effDate
to
inEffDate = cast(a.effDate) as char 8 (or some such syntax)

It may even be better to just do this with a variable before the
comparison as in

declare charEffDate char(8) ;


DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
begin
...
set charEffDate = cast(a.effDate) as char 8
...
end ;

select COUNT(*)
INTO VCOUNT
from prugadm
a
where inEffDate = ' ' or inEffDate = charEffDate ;

You can pretty that up to whatever date format you're using.
I don't want to take up the time to look up the exact syntax but you'll
get the idea.

Why bother putting each row through conversion?

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.