Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Vijay R. Anisetti — — source: Informix-list mailing list archive (1991-1998)
Kathy Hildebrand wrote:
>
> Can anyone get me an alternative to this SQL statement (it won't work).
> It doesn't like the LENGTH function in the brackets but I need to cut
> off the length of my first concatenated field. Any Ideas?
>
> select cost_ctr_code [1,LENGTH(cost_ctr_code)] || ", " || cost_ctr_name
> from costctr
shouldn't the following do the job?
SELECT cost_ctr_code[1,1] ||","||cost_ctr_name from costctr;
>
> Kathy Hildebrand
> kathy@htscm.com <mailto:kathy@htscm.com>
> :-)
> Designer/Programmer
Vj
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.