Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using like clause
Message
 
À
16/11/2006 14:39:04
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01170426
Message ID:
01170440
Vues:
10
>I am trying to define a SQL Server Select statement as follows:
>
> WHERE mydate = @mydate AND mycompany LIKE @mycompany
>
>The results I want are all records for mydate = a given date and all company names that start with the contents of the parameter. For example, if 'MICRO' was passed, I would want to see "MICROSOFT", "MICROCORP", "MICROSCOPE", etc...
>
>Also, if the @mycompany parameter is blank, I would want to see all companies that fall into that date range.
>
>Can this be done?
>
>Thanks,
>
>Jerry
like @mycompany+'%'
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform