Search Postgresql Archives

Re: PERFORM statement inside procedure

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

 



"Rajat Katyal" <rajatk@intelesoftech.com> writes:
> checkPKSql := ''select * from "transform_customer_billing" ''; 
> checkPKSql := checkPKSql || '' where "inv_no" = '' || quote_literal(new=
> ."inv_no");
> PERFORM checkPKSql;

You seem to be confusing PERFORM with EXECUTE.  They are very different.
The above PERFORM is really equivalent to
	SELECT 'select ...';
which naturally yields a row containing a not-very-useful string value.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[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