Subject | Re: DateTime Field Manipulations |
---|---|
Author | csswa |
Post date | 2002-05-13T14:01:23Z |
--- In ib-support@y..., Helen Borrie <helebor@t...> wrote:
logindate = cast(login as date),
logintime = cast(login as time)
although I'm pretty sure you can just do logindate = login for the
date one (implicit casting). Not sure about doing logintime =
login... try it and see. If it fails, revert to the casting.
Regards,
Andrew Ferguson
-- Where did you want to go today before you ended up here?
> >I am looking for something like:update table 1 set
> >
> >update table1 set logindate=date(login), loginTime=time(login) ...
>
> update table1 set logindate=CURRENT_DATE,
> logintime=CURRENT_TIME
>
logindate = cast(login as date),
logintime = cast(login as time)
although I'm pretty sure you can just do logindate = login for the
date one (implicit casting). Not sure about doing logintime =
login... try it and see. If it fails, revert to the casting.
Regards,
Andrew Ferguson
-- Where did you want to go today before you ended up here?