Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trimming a field in a sql statment
Message
 
 
À
22/08/2000 00:55:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00407618
Message ID:
00407663
Vues:
36
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform