Subject | Re: Insert current time and date |
---|---|
Author | ra8009 |
Post date | 2005-01-18T01:50:34Z |
Thanks, very interesting discussion.
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
> > > I want to write an insert statement that inserts a string and theWhat
> > > current time into a table:
> > >
> > > INSERT INTO MYTABLE VALUES ('MyString',NOW);
> > >
> > > The SQL above doesn't work, it says that "NOW" isn't recognized.
> > > is the right way to do this?transaction
> >
> > You could try INSERT INTO MYTABLE VALUES ('MyString', current_time);
>
> yes and just be aware, current_time is fixed to the start of the
> in which it is being used, versus 'NOW' which is fresh to thestatement in
> which it is being used
> Alan