Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trimming a field in a sql statment
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00407618
Message ID:
00407663
Views:
35
>I'm trying to do this sql statement
>SELECT item.ticket, Item.item, item.serialnr, item.cat;
> FROM item;
> where (ltrim(Item.ticket)) = temp;
>
>I need to trim all the blanks out of this character field, but it wont do it in my where statement anyone know of a way to do this?
>
> Kelly


Change where clause to

where RTRIM(LTRIM(Item.ticket)) = RTRIM(LTRIM(temp))
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform