Hi,

What about (I didn't test):

 SET @WHERE_CODE='44109';
DROP TABLE IF EXISTS DATA_POSTGRES;
CREATE FORCE LINKED TABLE DATA_POSTGRES
('org.orbisgis.postgis_jts_osgi.Driver', 'jdbc:postgresql_h2://....',
'login', 'pass', 'db', '(SELECT * POSTGRES_TABLE WHERE CODE=' || @WHERE_CODE
|| ')');

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to