I want to update from one database to another with the dblink in postgres as seen:
SELECT * FROM dblink_exec('dbname=sie7','update catalogo_organizaciones set activacion_tablas=0 where rfc= 'LIMJ930210HDZ' ')
in postgresql it runs fine but when I pass the query to php I get the following error:
ERROR: syntax error at or near "LIMJ930210HDZ" LINE 1: ... rganizaciones set activacion_tablas = 0 where rfc = 'LIMJ930210 ... ^
Someone knows why it happens.