Quotes in dynamic sql - Mailing list pgsql-general

From A E
Subject Quotes in dynamic sql
Date
Msg-id 20031230192245.23650.qmail@web12103.mail.yahoo.com
Whole thread Raw
Responses Re: Quotes in dynamic sql  ("John Sidney-Woollett" <johnsw@wardbrook.com>)
List pgsql-general
Hi,
 
I am trying to execute dynamic sql but I can't seem to get the qoutes right.
 
My code is
 
qry := ''SELECT * from ''|| trim(realname) ||'' where crmid like %''|| trim(crmid) ||''%'';
 
Can anyone help?
 
Alex

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Is my MySQL Gaining ?
Next
From: Russ Schneider
Date:
Subject: 7.3 dump into 7.2 (my solution)