You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Peter Robbins <pe...@gmail.com> on 2011/03/28 05:00:08 UTC
Add current_timestamp default to existing timestamp column
To whom it may concern,
Although mentioned in the documentation, doesn't appear to work?
Could you please give me correct syntax for this? Or add this to the Jira items?
Thanks a lot for your help.
Kind regards,
Peter
PS: I couldn't find any examples anywhere, only a web discussion where someone was having the same problems.
Re: Add current_timestamp default to existing timestamp column
Posted by Knut Anders Hatlen <kn...@oracle.com>.
Peter Robbins <pe...@gmail.com> writes:
> To whom it may concern,
>
> Although mentioned in the documentation, doesn't appear to work?
>
> Could you please give me correct syntax for this? Or add this to the Jira items?
Hi Peter,
This seems to work:
ij> create table t(ts timestamp);
0 rows inserted/updated/deleted
ij> alter table t alter column ts set default current_timestamp;
0 rows inserted/updated/deleted
You said what was mentioned in the documentation didn't work. Do you
have a pointer to that section of the manual so that we can see if it
needs to be updated?
--
Knut Anders