Subject | Re: Equivalent of VFP6 LEFT() in FB |
---|---|
Author | kaczy27 |
Post date | 2004-09-13T09:22:22Z |
--- In firebird-support@yahoogroups.com, Namit Nathwani
<namitnathwani@h...> wrote:
SUBSTRING(value FROM startpos [FOR length])
I don't know how this will work with blobs, but I'd try casting it
first
SUBSTRING(CAST(value) as VARCHAR(100)) FROM startpos [FOR length])
<namitnathwani@h...> wrote:
> Hi allviews
>
> I have this FB table containing a BLOB (Text) field. For a remote
> select statement I have written this in VFP6 as below:cShortAddress ;
>
> SELECT MCUSTOMSOFFICE.*, LEFT(MCUSTOMSOFFICE.mAddress, 44) AS
> FROM MCUSTOMSOFFICE MCUSTOMSOFFICE ;for varchar fields you can use
> ORDER BY MCUSTOMSOFFICE.CNAME
>
> The LEFT() does not seem to be recognized by FB/ODBC, what is the
> equivalent of LEFT()
SUBSTRING(value FROM startpos [FOR length])
I don't know how this will work with blobs, but I'd try casting it
first
SUBSTRING(CAST(value) as VARCHAR(100)) FROM startpos [FOR length])
> Please advise.HTH
>CUIN Kaczy
> Regards
> Bhavbhuti