Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Apostrophe in 'Create View' Statement
Message
 
 
À
26/08/2004 13:21:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00936451
Message ID:
00936712
Vues:
30
I would still suggest creating your view with parameters. The benefit to that is you do not have to mess with converting non-character values to strings and concatenating that to your SQL if you have any. WHERE ShelfQuantity = ?nQuant AND ShippingDate = ?dShip work for numeric and date values respectively without having to convert them in your SQL string.

>Trouble is, it's not just a query. They need all the amenities - update, add, delete etc - within the filtered criteria. Ultimately, I just felt a filter was slower to use overall than a view, so I went this direction with it. It works well, or did until this little bug jumped up and bit me. Your idea is reasonably easily adapted though.
>
>Even without using "Text To", I suppose it would have made sense to parametrise the view, but since I had actual concrete input, at the time I guess it just seemed easier to use the input directly.
>
>All the other views are parameterised and are based on the key of this particular view, but for whatever reason, I didn't do it that way with this dynamic view.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform