Hi!
How can i preselect a schema for all upcoming db acess, like inserts, selects, deletes, and more..?
If i connect to std db postgres where i have a schema 'test' i can access all tables in test via 'test.tablename', bute how can i preselect 'test' as domain for all following sqls. That way i could e.g "select * from tablename" in context of 'test'.
Tx in advance,
greets Terence.
Howto Select Schema in PostgresSql
Moderators: gto, cipto_kh, EgonHugeist
Run something like:via a ZQuery and then for that connection you will be able to use instead of
Regards,
Ben
Code: Select all
SET search_path = test;
Code: Select all
SELECT * from tablename;
Code: Select all
SELECT * from test.tablename;
Ben