Subject | Re: Does Firebird ignore String trailing spaces? |
---|---|
Author | Alexander V.Nevsky |
Post date | 2004-04-21T08:21:54Z |
--- In firebird-support@yahoogroups.com, "DataCom - Diego"
<diego@d...> wrote:
compared with any other SQL server (not sure about Postgress) ;) If
you need trailing spaces when comparing, in FB you can follow standard
recommendations and use LIKE, if not - direct compare.
Best regards,
Alexander
<diego@d...> wrote:
> Hi all,comparing
>
> I noticed that Firebird and InterBase ignore trailing spaces when
> two Strings. In a Borland site, I found the following: "SQL requiresthat
> trailing spaces be ignored when comparing two strings of differentlengths".
> And now I discovered that Oracle doesnt ignore them. Wich one is right?In the sense of the SQL standard FB is almost always right when
compared with any other SQL server (not sure about Postgress) ;) If
you need trailing spaces when comparing, in FB you can follow standard
recommendations and use LIKE, if not - direct compare.
Best regards,
Alexander