Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL working, not working, now working
Message
De
15/08/2005 08:14:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01040909
Message ID:
01040921
Vues:
13
>My disclaimer ... it was late last night ..... and I could not get an SQL statement to work that had always worked previously.
>
>subnum is a 5 character field and parcel is a 12 character field. So subnum is matching on the first 5 characters of parcel.
>
>SELECT pao1.* FROM pao1, sub INTO CURSOR sub2 WHERE ALLTRIM(subnum) = PARCEL
>
>When the SQL kept returning an empty cursor I rewrote the SQL to the following and it worked.
>
>SELECT pao1.* FROM pao1, sub INTO CURSOR sub2 WHERE parcel like ALLTRIM(subnum)+ '%'
>
>Now in the morning, the original SQL is working. Is the only explaination was that it was late at night?
>
>Brenda

Brenda,
They're not the same SQL (first one depends on 'set ansi').
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform