| From: | Josué Maldonado <josue(at)lamundial(dot)hn> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Set returning functions and Crystal Reports |
| Date: | 2004-06-11 18:40:46 |
| Message-ID: | 40C9FCAE.9000506@lamundial.hn |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jao | 2004-06-11 19:55:14 | Trying to minimize the impact of checkpoints (resend) |
| Previous Message | Tom Lane | 2004-06-11 18:32:59 | Re: bytea functions |