Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use IN operator with parameter
Message
 
 
À
04/02/2003 13:36:00
Gary Otte
California Youth Authority
Sacramento, Californie, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00748978
Message ID:
00748984
Vues:
25
This message has been marked as the solution to the initial question of the thread.
In SQL 2000 you can use XML. See Re: Selecting records based on cursor values Message #690890 for sample code.

>Trying to create a stored procedure to accomplish something like:
>SELECT * FROM TABLE WHERE CITY IN (@CITIES)
>where @CITIES is a parameter containing a list of cities: eg, 'Sacramento', 'Placerville', 'San Francisco'
>
>Any suggestions?
>
>TIA,
>Gary
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform