Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 23rd, 2005, 01:09 AM
Josué Maldonado
Guest
 
Posts: n/a
Default Set returning functions and Crystal Reports

Hello list,

Apologize first if this is off topic.

have this function in plpgsql

DECLARE
crow histmer%rowtype;
BEGIN
select * into crow from histmer
where fecha = date 'now';
if found then
return next crow;
end if;
select * into crow from histmer order by fecha desc limit 1 ;
insert into histmer values (date 'now', crow.mercado_ne, crow.factor_adu) ;
select * into crow from histmer
where fecha = date 'now';

return;
END

Any idea to make Crystal Reports (10) to accept it as a data set resulting?

Thanks in advace

--
Sinceramente,
Josué Maldonado.
"Para todo mal existen dos remedios: el tiempo y el silencio." Alejandro
Dumas. Escritor francés.

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles