views:

189

answers:

1

Hi all,
In MySQL I can easily set the default value of a timestamp field to be the current time

fieldname timestamp not null default current_timestamp

Does anyone know how to do the same thing in java derby?

+3  A: 

This should work fieldname TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP

Chandra Patni
that was a stupid question, even the lowercase works... I just didn't try it out. Thanks
phunehehe