[SQL] Table inheritance problem

2009-07-18 Thread Gianvito Pio
Hello, I have 3 tables: persons, operators and persons_position. This is a semplified examples of their structures: CREATE TABLE persons (id varchar NOT NULL, CONSTRAINT "PK_Persons" PRIMARY KEY(id)); CREATE TABLE operators (id varchar NOT NULL, CONSTRAINT "PK_Operators" PRIMARY KEY(id)) INHERI

Re: [SQL] Timestamp with timezone with Default value

2009-07-18 Thread Jasmin Dizdarevic
Hi, i think: create. ...( myCol timestamp with timezone default now() ) the function now() returns a timestamp with timezone ( http://www.postgresql.org/docs/8.4/static/functions-datetime.html) i currently have no db to test it - but it should work. jasmin 2009/7/18 Gianvito Pio > Hi all,

[SQL] Timestamp with timezone with Default value

2009-07-18 Thread Gianvito Pio
Hi all, how can I define a column of timestamp with timezone type...with a default value? Thanks