Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized View
Message
 
 
À
05/08/2004 05:34:46
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00930911
Message ID:
00930948
Vues:
8
If cOrder_ID is a character type than you can set it to empty string (assuming that SET ANSI OFF) to get all orders. You can also change '=' to 'LIKE".
CREATE SQL VIEW order_purchase CONNECTION sql_hcdc_1 SHARE AS 
SELECT * FROM order_purchase WHERE Order_ID LIKE ?cOrder_ID ORDER BY order_ID
* Get all orders 
cOrder_ID = "%"
>I set up some remote views as shown:
>
>CREATE SQL VIEW order_purchase CONNECTION sql_hcdc_1 SHARE AS SELECT *
FROM order_purchase WHERE Order_ID = ?cOrder_ID ORDER BY order_ID
>
>In some time, I would like to selct all order_purchase, what can I do? any wildcard substitute for cOrder_ID?!
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform