Subject | Re: [firebird-support] Context variables |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2005-03-14T12:49:41Z |
On 14 Mar 2005 at 13:33, Ivan Prenosil wrote:
error, no?
--
SY, Dimitry Sibiryakov.
>To strip-off time portion from timestamp, you have to convertAFAIK, CAST cannot truncate string. You'll get 'String truncation'
>string 'NOW' to timestamp, get first 11 characters,
>then convert it back. This will work in both dialects:
> CAST(CAST(CAST ('NOW' AS DATE) AS VARCHAR(11)) AS DATE)
error, no?
--
SY, Dimitry Sibiryakov.