On 13-Feb-2012 15:03 , Koester, Michael wrote:
On 13-Feb-2012 14:19 , Koester, Michael wrote:
<<SNIP>>
UPDATE PLTLCD SET LCDSCM = 'ADSL Dynamic 0004780533 '
WHERE substr(LCDSCM, 6, 23)
<<SNIP>>
Chuck, SQLER5 is 14.
There are two spaces between the "PLTLCD" and "SET", and the second
space is at position 14 in the string.
Is that a problem?
My e-mail reader presented three blanks from the text that was
pasted. No matter...
Any amount of _true_ /white space/ is moot.
Review the variable\data in hex. Likely a character at\near that
position 14 is not a 0x40.
FWiW: Missing blanks after apostrophe as string delimiters and
literal lengths for syntax checking are also moot. What could have been
an issue for the given string was for the use of the "substr" scalar,
*if* the statement environment had SET OPTION for decimal separator as a
comma instead of a period; but that SUBSTR() was properly formed with
the extra space following each comma, to prevent a syntax error,
irrespective of decimal point choice\setting.
Regards, Chuck
This mailing list archive is Copyright 1997-2026 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.