Subject | String length, was Re: How to cast a float? |
---|---|
Author | Helen Borrie |
Post date | 2004-09-13T06:47:09Z |
At 05:45 AM 13/09/2004 +0000, you wrote:
select my_pk from my_table
where strlen(MyVarcharCol) > 2
Grab the SQL for the function declaration out of ib_udf.sql and change the
length of the input parameter declaration to be long enough to accommodate
the longest string that is likely to be passed to it.
./heLen
>BTW, does FB support the LENGTH function in SQL? I.e for a char orYou'd need the UDF strlen():
>varchar column called "my_string", something like:
>
>select my_pk from my_table where length(my_string) > 2
select my_pk from my_table
where strlen(MyVarcharCol) > 2
Grab the SQL for the function declaration out of ib_udf.sql and change the
length of the input parameter declaration to be long enough to accommodate
the longest string that is likely to be passed to it.
./heLen