Subject | RE: [firebird-support] Insert current time and date |
---|---|
Author | Alan McDonald |
Post date | 2005-01-17T22:20:13Z |
> > I want to write an insert statement that inserts a string and theyes and just be aware, current_time is fixed to the start of the transaction
> > current time into a table:
> >
> > INSERT INTO MYTABLE VALUES ('MyString',NOW);
> >
> > The SQL above doesn't work, it says that "NOW" isn't recognized. What
> > is the right way to do this?
>
> You could try INSERT INTO MYTABLE VALUES ('MyString', current_time);
in which it is being used, versus 'NOW' which is fresh to the statement in
which it is being used
Alan