Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL update
Message
From
27/05/2004 09:30:50
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00907686
Message ID:
00907688
Views:
6
This message has been marked as the solution to the initial question of the thread.
Hi Stephen,

I don't know Oracle, but what about
UPDATE equipment SET description=LTRIM(description) WHERE description like ' %'
>Hello All
>
>
>Quick question, I have been handed a oracle database that I can only access via SQL statements, in one of my tables I have a field called description and over 37,000 of the recorder begin with a space;
>
>“ CPU, DESKTOP 1.5ghz”
>
>I can do a SQL statement to retrieve select * from equipment where equipment.description like ‘ %’
>
>But to save my life I can not figure out how to do a SQL UPDATE to replace all of the description with description minus the leading space
>
>Any help in any way will be greatly appreciated
>
>Thanks
>Stephen McLaughlin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform