|
From what I've learned, SQL doesn't like assumptions of any kind -- you gotta spell things right out for it. With UDFs, this works the other way, too -- if you want to pass a literal string to a UDF, you have to tell the UDF exactly what you're doing.For example, if you've got a UDF that expects to be passed a one-character field, you'll get an error if you try:
This worked! Never assume default sizes!. . .
Create function CharOrder
(numb DEC(8,0))
Returns char(7)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.