So I have 1 database 5 schema and every schema contain my database...
I want to set "schema" on ZConnection and not run this command before every query
Code: Select all
SET search_path = test;
any idea?
Moderators: gto, cipto_kh, EgonHugeist, olehs
Code: Select all
SET search_path = test;
Code: Select all
ZConnection1.ExecuteDirect('set local search_path to test;');
Code: Select all
CREATE TABLE arc_demo.prs
(
id integer NOT NULL DEFAULT nextval('arc_demo.s_prs_codice_id'::regclass),
utente_creazione character varying(8) DEFAULT ''::character varying,
data_ora_creazione timestamp without time zone,
utente character varying(8) DEFAULT ''::character varying,
data_ora timestamp without time zone,
codice character varying(30) DEFAULT ''::character varying,
valore integer DEFAULT 0,
CONSTRAINT prs_pkey PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE arc_demo.prs OWNER TO postgres;
GRANT ALL ON TABLE arc_demo.prs TO postgres;
-- Index: arc_demo.prs_codice
-- DROP INDEX arc_demo.prs_codice;
CREATE UNIQUE INDEX prs_codice
ON arc_demo.prs
USING btree
(codice);
-- Trigger: t_prs_biu on arc_demo.prs
-- DROP TRIGGER t_prs_biu ON arc_demo.prs;
CREATE TRIGGER t_prs_biu
BEFORE INSERT OR UPDATE
ON arc_demo.prs
FOR EACH ROW
EXECUTE PROCEDURE arc_demo.p_biu();