Hi,
Try the following:
Update MyFile
Set Fname = Substr(FName), 1, Length(Trim(FName)) - 1)
Where Length(Trim(Fname)) - 1 > 0 and ...
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Peter Vidal
Gesendet: Friday, July 27, 2007 21:56
An: midrange-l@xxxxxxxxxxxx
Betreff: SQL: Remove a character from a string (regardless position)
Hi list!
I have a file (with a couple of thousand records in it) that has a field
called FNAME (10/A) and I want to be able to remove the last character of
the value. I may have:
FILAX
TEMPERED
IGLANDT
So after the execution of the SQL, I want to have:
FILA
TEMPERE
IGLAND
How I do that in SQL?
Thanks!
Peter Vidal
MAPICS IT Technical Support Team / SR System Analyst
10540 Ridge Rd., Ste 203, New Port Richey, FL 34654-5111
http://www.pall.com
"The wisest mind has something yet to learn."
George Santayana (1863 - 1952)
----------------------------------------------------------------------------
----
Attention:
This communication may contain information that is confidential, privileged
and/or exempt from disclosure under applicable law.
If you are not the intended recipient, please notify the sender
immediately and delete the original, all attachments, and all
copies of this communication.
----------------------------------------------------------------------------
----
As an Amazon Associate we earn from qualifying purchases.