× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.