Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View SQL Parsing Problem
Message
De
28/10/1998 09:37:57
Rick Hawkins
Rose Valley Software Studio
Wallingford, Pennsylvanie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
View SQL Parsing Problem
Divers
Thread ID:
00151526
Message ID:
00151526
Vues:
44
I had created a view using the view designer but couldn't make
it to form the syntax of the SQL statement the way I wanted it to be.

I wanted like this..........

CREATE SQL VIEW request A AS;
SELECT * FROM A;
WHERE Request.USER_CLOCK LIKE ?cuser_clock;
AND Request.AREA LIKE ?carea;
AND (Request.MNRCAT LIKE ?cmnrcat OR Request.MNRCAT IS NULL);
AND (Request.STATUS LIKE ?cstatus OR Request.STATUS IS NULL);

Instead it created like this.......

SELECT * from A
WHERE Request.USER_CLOCK LIKE ?cuser_clock;
AND Request.AREA LIKE ?carea;
AND Request.MNRCAT LIKE ?cmnrcat;
OR (Request.MNRCAT IS NULL;
AND Request.STATUS LIKE ?cstatus);
OR (Request.STATUS IS NULL;

** Notice the position of ( and )

I know that to get around this problem, you have to do it programmatically in a .prg, but I dont know how. Can anybody help me with it??

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform