At 09:58 AM 5/13/98 +0200, Marco Stanghellini wrote:
>I have a file with a character FIELD called SERIAL (p.e. "DB90999"), now I
>need to change all the field that have the first two character = "DB" with
>"AB" leaving all the rest as is.

Marco,

The SQL would probably be something like:

UPDATE XXXXX SET SERIAL='A'||SUBSTR(SERIAL,2) WHERE SERIAL LIKE 'DB%'

BTW, your English seems just fine to me.

Pete


Pete Hall
peteh@inwave.com 
http://www.inwave.com/~peteh/

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...

Replies:

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

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