Search Postgresql Archives

Re: returning setof varchar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Scott Schulthess wrote:
How do I get this to work?

for r in SELECT distinct(substring(drgtitle, 1, 1)) as text from
stockdrgmeta where state ilike '%' || $1 || '%'


loop variable of loop over rows must be record or row variable at or
near "LOOP" at character 218


DECLARE
	r RECORD;
BEGIN
	FOR r IN ...
		RETURN NEXT r.text

--
  Richard Huxton
  Archonet Ltd


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux