Does Informix-SQL have Perl-like functions?
Posted in 2003
Topics: Stored Procedures & SPL
Greetings, Apologies if this has been answered before. Does Informix-SQL have functions such as Perl's 'split'. We have a field which contains data delimited by "-" (dashes); the data is of variable length so we can't use field1[x,x] types of approaches. Any help in this regard would be appreciated. Thanks in advance. Max Pyziur pyz@brama.com
"Professor Bruno" <pyz@panix.com> wrote in message news:bijd3j$mh8$1@reader2.panix.com... > Greetings, > > Apologies if this has been answered before. > > Does Informix-SQL have functions such as Perl's 'split'. > > We have a field which contains data delimited by "-" (dashes); the data > is of variable length so we can't use field1[x,x] types of > approaches. > > Any help in this regard would be appreciated. > > Thanks in advance. Informix does not have, but a function split can be written easily. to achieve the same, provided you are in 9.x version. You can call it as select split(fld1) from table where .... and it will spew back different fields. Please contact me at srkrishna at yahoo.com and I can help you there. rk- -- The email address is bogus.
Professor Bruno <pyz@panix.com> wrote in message news:<bijd3j$mh8$1@reader2.panix.com>... > Greetings, > > Apologies if this has been answered before. > > Does Informix-SQL have functions such as Perl's 'split'. http://www.iiug.org/software/index_ORDBMS.html And more specifically: http://www.iiug.org/software/archive/split_udr_README Which describes it.