As others had said, the context variable CURRENT_TIME returns 13 characters.

It works fine:

SELECT CAST(CURRENT_TIME AS VARCHAR(13)) FROM RDB$DATABASE

Greetings.

Walter.



On Wed, Aug 21, 2013 at 5:54 AM, Wewe <[email protected]> wrote:

> **
>
>
> SELECT substring(CAST(CURRENT_TIME AS VARCHAR(13)) from 1 for 8) FROM
> RDB$DATABASE
>
> ________________________________
> From: majstor <[email protected]>
> To: [email protected]
> Sent: Wednesday, August 21, 2013 4:32 PM
> Subject: [firebird-support] Converting CURRENT_TIME to VARCHAR
>
>
>
>
> Hello,
>
> I have an sql statement which is don't work:
>
> SELECT CAST(CURRENT_TIME AS VARCHAR(10)) FROM RDB$DATABASE
>
> maybe I'm craisy, but what is wrong???
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]



------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu.  Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to