Look at this problem:
when
execute 'insert into lse_installations values(' || ''''||obj_id||'''' || ',' || 
''''||div||'''' || ',' || ''''||sub||'''' || ',' || ''''||obj_type||'''' || ',' 
|| ''''||obj_name||'''' || ',' || ''''||pstcd||'''' || ',' || ''''||rdcd||'''' 
|| ',' || ''''||blkno||'''' || ',' || ''''||vldunt||'''' || ','|| cenlat || ',' 
|| cenlon || ')';
because obj_name from another table has value like this:S'pore High Polymer.
Following error raises: ERROR: syntax error at or near "pore"
SQL state: 42601
Context: PL/pgSQL function "lse_installations" line 64 at execute statement

So how to process the single inverted comma in char variable?It makes me so 
desperate.

_________________________________________________________________
与世界各地的朋友进行交流,免费下载 Live Messenger; http://get.live.com/messenger/overview

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to