Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL & setting of exact.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00799387
Message ID:
00799392
Vues:
36
>Seems like I am getting hits for data I do not want when using sql select statement. "Select pn,noun,cal_int from d:\zcalauth;
> where ALLTRIM(pn)=ALLTRIM(mpart_nbr) into cursor zcal"
>if mpart_nbr='44', I am getting matches on "44-10", "444", "445-9"
>only with SQL though :-(

In Sql Select comparison is controlled by SET ANSI command.
lcSaveAnsi = SET(" ANSI")
SET ANSI ON
Select pn,noun,cal_int from d:\zcalauth ;
            where pn = mpart_nbr into cursor zcal
SET ANSI &lcSaveAnsi
Should cure the problem
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform