|
Hi, The following statement will replace all characters following the first blank through blanks: update mytable set Text = substr(Text, 1, Posstr(Text, ' ')) where PosStr(Text, ' ') > 0 Mit freundlichen Grüßen i.A. Birgitta Hauser LUNZER + PARTNER GMBH Unternehmensberatung Carl-Zeiss-Straße 1 63755 Alzenau Tel: + 49 6023 951-255 Fax: + 49 6023 951-111 Internet. www.lp-gmbh.com www.rpg-schulung.de "If you think education is expensive, try ignorance" (Derek Bok) -----Ursprüngliche Nachricht----- Von: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von steema@xxxxxxxxxxxxx Gesendet: Montag, 6. Februar 2006 14:36 An: Midrange Systems Technical Discussion Betreff: SQL question HI I have to remidiate a bunch of files. Some programs are not initializing properly so that some records, have a character at the end, that should not be there ( belongs to a prev.) I need to write a small prg that will look for a blank, then look for something other than a blank, and replace w/ a blank. Can this be done easily in SQL ? Thanks, Steve
As an Amazon Associate we earn from qualifying purchases.
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.