Re: Timestamp Column.
Posted in 1998
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
pedrocr@dicoruna.es wrote:
>
> Hi all.
>
> I want to add a column of type timestamp in a table. (Informix Online 7.1)
> It's posible?
> In the manual i don't find the data type timestamp.
> Is there a type timestamp?
> How can i do?
> Please help.
> Thanks.
Informix does not support type TIMESTAMP. You can use DATETIME along
with a DEFAULT constraint and an UPDATE TRIGGER to implement
automatically maintained timestamps. Try:
create table mytable (...
timestamp DATETIME YEAR TO FRACTION(3) DEFAULT CURRENT,
...
);
Art S. Kagel