Subject | Re: [firebird-support] constants interpreted as char instead of varchar |
---|---|
Author | Milan Babuskov |
Post date | 2009-03-03T19:14:31Z |
woodsmailbox wrote:
case when 1 = 1 then 'a' else 'ab' end || 'c'
or
trim(decode(1 = 1, 'a', 'ab') || 'c'
--
Milan Babuskov
http://www.flamerobin.org
http://www.guacosoft.com
> is there any shortcut to make 'x' a varchar instead of char in sqlThese come to mind:
> expressions? for instance,
>
> decode(1 = 1, 'a', 'ab')||'c'
case when 1 = 1 then 'a' else 'ab' end || 'c'
or
trim(decode(1 = 1, 'a', 'ab') || 'c'
--
Milan Babuskov
http://www.flamerobin.org
http://www.guacosoft.com