try this....

from gluon.sql import Expression

db.define_table(...
Field('name','datetime',default=Expression("datetime('now')"))
...)

where datetime('now') is a database dependent SQL expression

On Jun 17, 11:28 am, Narendran <[email protected]> wrote:
> Hi,
> I saw a discussion on the same topic a year back. Is there a solution
> available now?
>
> My problem is:
> I want to have a datetime column in the db (for logging purpose), and
> the default should be set as current timestamp, at the db level; not
> at the form(crud) level.
>
> --
> Thanks
> Narendran

Reply via email to