× 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.



Update ...
Set field = substr(field,x,y) concat x'????' concat substr(field, xx,yy)

-Matt


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Buzz Fenner
Sent: Wednesday, October 3, 2018 4:14 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: SQL UPDATE SET

On Wed, 3 Oct 2018, Rob Berendt wrote:
definitely not x'01f' as that's an odd number of characters. Try an
even number.
values x'001f'; is ok
values x'01f'; is not
And, just for grins and giggles, I would capitalize that F.

Sorry, the hex string was a typo.

However, what I'm trying to do is to set the value of a -portion- of a column/field and I think that's where the ACS Run SQL Scripts editor is slapping my hand. Revising my earlier example:

UPDATE myTable
SET SUBSTR(myColumn,4,1)=x'8F'

The editor sez: Message: [SQL0104] Token ( was not valid. Valid tokens: =.

--Buzz


________________________________

This electronic mail transmission may contain confidential or privileged information. If you believe that you have received this message in error, please notify the sender by reply transmission and delete the message without copying or disclosing it.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_midrange-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=kRu7WXzRb6OswnRQlvV9EW9QDfpv27F87ZAi4mlSxiQ&s=bxWaq-n_ZL7uRGGKfM7Tl2LU_UNYUTFIPmDWGnLIARk&e=
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_midrange-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=kRu7WXzRb6OswnRQlvV9EW9QDfpv27F87ZAi4mlSxiQ&s=Xqpz2HkN4TvIkWYNaLFW0Ns803IWF2zagI4U2eofVcY&e=.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://urldefense.proofpoint.com/v2/url?u=http-3A__amzn.to_2dEadiD&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=kRu7WXzRb6OswnRQlvV9EW9QDfpv27F87ZAi4mlSxiQ&s=aQwp0qkUdYT1qoInQg9Eccb7pesn7OwfEsXJVpmAI34&e=

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.