Subject | Re: left string syntax |
---|---|
Author | diegodelafuente |
Post date | 2005-02-07T18:01:27Z |
thanks
--- In firebird-support@yahoogroups.com, Thomas Steinmaurer
<ts@i...> wrote:
--- In firebird-support@yahoogroups.com, Thomas Steinmaurer
<ts@i...> wrote:
> > i want to make something like this
> >
> > Var1 = left(:var2,4) + '00';
>
> You can do that easily by using the built-in SUBSTRING function.
>
>
> Var1 = SUBSTRING(var2 FROM 1 FOR 4) || '00';
>
>
> --
> HTH,
> Thomas Steinmaurer
> LogManager Series - Logging/Auditing Suites supporting
> InterBase, Firebird, Advantage Database and MS SQL Server
> Upscene Productions
> http://www.upscene.com