Subject | Re: [firebird-support] Returning Partial field Value |
---|---|
Author | Paul Vinkenoog |
Post date | 2003-08-31T10:09:21Z |
Hello Mark,
In Firebird (not in IB afaik) ib_udf also has a function substrlen,
which you call like this:
substrlen( string, startpos, count )
with count the number of characters you want returned, and startpos
1-based (like in substr).
Greetings,
Paul Vinkenoog
> How do I return a partial field value in sql in InterBase? (...)Just to add to what others already told you about the substr() UDF:
> SELECT Mid([SomeField],1,5) AS Expr1
> FROM SomeTable;
>
> if returns the first 5 characters, starting from the beginning of
> the value, how do I do the same with InterBase?
In Firebird (not in IB afaik) ib_udf also has a function substrlen,
which you call like this:
substrlen( string, startpos, count )
with count the number of characters you want returned, and startpos
1-based (like in substr).
Greetings,
Paul Vinkenoog